This commit is contained in:
Džubara 2024-10-31 23:28:20 +01:00
parent 7362504a1f
commit 3a0e028b7e

View File

@ -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 at position %d\n", c, i);
printf("Unexpected closing bracket %c%d\n", c, i);
return;
}
if (!match(stack[top], c)) {