5
This commit is contained in:
parent
1dcb4845fd
commit
2138b86223
@ -51,7 +51,7 @@ int main(void) {
|
|||||||
stack[++top] = c;
|
stack[++top] = c;
|
||||||
} else if (is_close(c)) {
|
} else if (is_close(c)) {
|
||||||
if (top < 0) {
|
if (top < 0) {
|
||||||
printf("Unexpected closing bracket %c in %d\n ", c, i);
|
printf("Unexpected closing bracket %c in %d\n", c, i);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
char last = stack[top--];
|
char last = stack[top--];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user