diff --git a/a1/program.c b/a1/program.c index 0bbee3b..af8cb6e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -18,7 +18,7 @@ void check_brackets(const char *code) { stack[++top] = c; } else if (c == '}' || c == ']' || c == ')') { if (top == -1) { - printf("Unexpected closing bracket %c%d\n", c, i); + printf("Unexpected closing bracket %c in %d\n", c, i); return; } if (!match(stack[top], c)) {