Update a1/program.c

This commit is contained in:
Yurii Chechur 2024-10-24 20:33:03 +00:00
parent af3f5afd54
commit 63a7cc46cd

View File

@ -53,9 +53,9 @@ int main() {
}
}
if (top != -1) {
printf("Unexpected opennig bracket\n");
return 1;
if (top != -1) {
printf("Missing closing brackets for: %c\n", stack[top]);
return 0;
}
printf("All brackets OK\n");