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);