Update a1/program.c
This commit is contained in:
parent
ce643ee742
commit
8cbcacc7f7
@ -60,7 +60,7 @@ int main() {
|
|||||||
|
|
||||||
// If brackets do not match, it's an error
|
// If brackets do not match, it's an error
|
||||||
if (!isMatching(stack[top--], current)) {
|
if (!isMatching(stack[top--], current)) {
|
||||||
printf("Crossed bracket %c in %d, expected %c.\n", current, i,
|
printf("Crossed bracket %c in %d, expected %c\n", current, i,
|
||||||
getExpectedClosingBracket(stack[top + 1]));
|
getExpectedClosingBracket(stack[top + 1]));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user