This commit is contained in:
Bohdan Kapliuk 2024-10-27 22:38:39 +02:00
parent 93006e6392
commit d723f30ad8

View File

@ -36,10 +36,9 @@ int main() {
}
}
if (x > 0) {
printf("Unmatched opening bracket %c at position %d\n", stack[x-1], position[x-1]);
printf("Unexpected closing bracket %c in %d\n", stack[x-1], position[x-1]);
} else {
printf("All brackets OK\n");
}
return 0;
}