From 46666f11bc08255a10d9f218fd3c405d7550e0c5 Mon Sep 17 00:00:00 2001 From: Marat Izmailov Date: Thu, 24 Oct 2024 10:44:14 +0000 Subject: [PATCH] Update a1/program.c --- a1/program.c | 1 + 1 file changed, 1 insertion(+) diff --git a/a1/program.c b/a1/program.c index 3d855e3..bd9909c 100644 --- a/a1/program.c +++ b/a1/program.c @@ -61,6 +61,7 @@ int main() { char lastOpen = pop(); if (!isMatchingPair(lastOpen, c)) { + // Используем i для вывода позиции, где найдена ошибка printf("Crossed bracket %c in %d, expected %c\n", c, i + 1, matchingCloseBracket(lastOpen)); return 0; // Ожидается код завершения 0 }