From b09500eb696319d322cecdaa7d5b43eb7ab9c616 Mon Sep 17 00:00:00 2001 From: Yurii Chechur Date: Thu, 24 Oct 2024 20:20:45 +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 cab789f..e3c17e6 100644 --- a/a1/program.c +++ b/a1/program.c @@ -38,7 +38,7 @@ int main() { } } else if (isClosing(current)) { if (top == -1) { - printf("Помилка: зайвий закриваючий символ '%c' на позиції %d.\n", current, i); + printf("Unexpected closing bracket '%c' in %d.\n", current, i); return 1; } if (!isMatching(stack[top], current)) { @@ -54,7 +54,7 @@ int main() { } if (top != -1) { - printf("Помилка: незакриті дужки.\n"); + printf("Unexpected opennig bracket\n"); return 1; }