s
This commit is contained in:
parent
7362504a1f
commit
3a0e028b7e
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user