From 04fc1739b8e0bfaa735e924faeb330186edd4795 Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Thu, 24 Oct 2024 20:45:24 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a1/program.c b/a1/program.c index bb417ff..e5f62a8 100644 --- a/a1/program.c +++ b/a1/program.c @@ -45,12 +45,12 @@ int main() { } } else if (isClosing(current)) { if (top == -1) { - printf("Unexpected closing bracket %c at position %d\n", current, i); + printf("Unexpected closing bracket %c in %d\n", current, i); return 0; } if (!isMatching(stack[top], current)) { char expected = expectedClosing(stack[top]); - printf("Crossed bracket '%c' at position %d, expected '%c'\n", current, i, expected); + printf("Crossed bracket '%c' in %d, expected '%c'\n", current, i, expected); return 0; } top--;