From bbc798be030053756c85142c797e48b92f48548a Mon Sep 17 00:00:00 2001 From: mr314ot Date: Tue, 14 Oct 2025 13:27:43 +0200 Subject: [PATCH] a1 - 5 --- a1/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a1/program.c b/a1/program.c index 29e9a6c..c1ac893 100644 --- a/a1/program.c +++ b/a1/program.c @@ -57,12 +57,12 @@ int main(){ } else if (isClosing(c)){ if (top < 0){ - printf("Unexpected closing bracket %c in %d\n", c, i+1); + printf("Unexpected closing bracket %c in %d\n", c, i); return 0; } char last = stack[top--]; if (expectedClosing(last) != c){ - printf("Crossed bracket %c in %d, expected %c\n", c, i+1, expectedClosing(last)); + printf("Crossed bracket %c in %d, expected %c\n", c, i, expectedClosing(last)); return 0; } }