Update a1/program.c
This commit is contained in:
parent
af3f5afd54
commit
63a7cc46cd
@ -54,8 +54,8 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (top != -1) {
|
if (top != -1) {
|
||||||
printf("Unexpected opennig bracket\n");
|
printf("Missing closing brackets for: %c\n", stack[top]);
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("All brackets OK\n");
|
printf("All brackets OK\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user