Update a1/program.c

This commit is contained in:
Marat Izmailov 2024-10-31 20:58:35 +00:00
parent 8cbcacc7f7
commit 98b60c7f4b

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