Update a1/program.c

This commit is contained in:
Marat Izmailov 2024-10-31 20:56:03 +00:00
parent ce643ee742
commit 8cbcacc7f7

View File

@ -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;
} }