From 6e170886b35994fc10bcdac139f251c3d7be418b Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Thu, 24 Oct 2024 20:24:01 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 0f72404..2b3efb9 100644 --- a/a1/program.c +++ b/a1/program.c @@ -39,7 +39,7 @@ int main() { } else if (isClosing(current)) { if (top == -1) { printf("Unexpected closing bracket '%c' in %d.\n", current, i); - return 1; + return 0; } if (!isMatching(stack[top], current)) { printf("Crossed bracket '%c' in %d , expected \n", current, i);