diff --git a/a1/program.c b/a1/program.c index 3f29499..ea85b80 100644 --- a/a1/program.c +++ b/a1/program.c @@ -51,7 +51,7 @@ int main() if (top != -1) { - printf("Unmatched opening bracket %c\n", stack[top]); + printf("Missing closing brackets: %c\n", (stack[top] == '(' ? ')' : stack[top] == '{' ? '}' : stack[top] == '[' ? ']' : '>')); return 0; }