From 4dea0649d613f7ee3d00c47e821902f22b859f90 Mon Sep 17 00:00:00 2001 From: Ivan Leichenko Date: Thu, 31 Oct 2024 18:10:50 +0100 Subject: [PATCH] missing closing brackets a1 --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }