try
This commit is contained in:
parent
e9715b4a42
commit
61a6c1580d
@ -83,7 +83,7 @@ int main() {
|
|||||||
if (top <-1) {
|
if (top <-1) {
|
||||||
printf("Unexpected closing bracket %c in %d\n", c, err-1);
|
printf("Unexpected closing bracket %c in %d\n", c, err-1);
|
||||||
} else {
|
} else {
|
||||||
printf("Crossed bracket %c in %d, expected %c\n", c, err-1, getExpectedClosing(stack[top]));
|
printf("Crossed bracket %c in %d, expected %c\n", c, err-1, getExpectedClosing(stack[err-2]));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("Missing closing brackets: ");
|
printf("Missing closing brackets: ");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user