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; }