diff --git a/a1/program.c b/a1/program.c index eb4285f..f836e50 100644 --- a/a1/program.c +++ b/a1/program.c @@ -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");