From 63a7cc46cd29410965bf57d7d27f95a1243f3e9e Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Thu, 24 Oct 2024 20:33:03 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");