From 6c0c3cfee588a39a5d3a485e776ff2df6a4cd5f4 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 29 Oct 2024 17:00:08 +0000 Subject: [PATCH 1/3] Initializacia --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 3a9e3b1..1d0dc9e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -60,7 +60,7 @@ void check_brackets(const char *line) { } else if (stack[stack_top].bracket == matching_bracket(ch)) { stack_top--; } else { - printf("Crossed bracket %c in %d, expected %c\n", ch, i, + printf("Crossed bracket %c in %d, expected %c\n ", ch, i, expected_closing(stack[stack_top].bracket)); return; } From 0a45896795aab6ca2ef47660726ec2abf73738dc Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 29 Oct 2024 17:01:15 +0000 Subject: [PATCH 2/3] Initializacia --- a1/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a1/program.c b/a1/program.c index 1d0dc9e..0d06df5 100644 --- a/a1/program.c +++ b/a1/program.c @@ -55,12 +55,12 @@ void check_brackets(const char *line) { } } else if (is_closing(ch)) { if (stack_top == -1) { - printf("Unexpected closing bracket %c in %d\n", ch, i); + printf("Unexpected closing bracket %c in %d \n", ch, i); return; } else if (stack[stack_top].bracket == matching_bracket(ch)) { stack_top--; } else { - printf("Crossed bracket %c in %d, expected %c\n ", ch, i, + printf("Crossed bracket %c in %d, expected %c \n", ch, i, expected_closing(stack[stack_top].bracket)); return; } From ae048d93047f4f2e75d3e0755e4e2906945afb46 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 29 Oct 2024 17:02:15 +0000 Subject: [PATCH 3/3] Initializacia --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 0d06df5..1e54785 100644 --- a/a1/program.c +++ b/a1/program.c @@ -55,7 +55,7 @@ void check_brackets(const char *line) { } } else if (is_closing(ch)) { if (stack_top == -1) { - printf("Unexpected closing bracket %c in %d \n", ch, i); + printf("Unexpected closing bracket %c in %d\n", ch, i); return; } else if (stack[stack_top].bracket == matching_bracket(ch)) { stack_top--;