Update a1/program.c
This commit is contained in:
parent
43aae31d16
commit
6c5f1b2409
@ -69,7 +69,11 @@ int main() {
|
||||
|
||||
// Проверка на незакрытые скобки
|
||||
if (top != -1) {
|
||||
printf("Missing closing brackets: %c\n", matchingCloseBracket(stack[top]));
|
||||
printf("Missing closing brackets: ");
|
||||
for (int i = top; i >= 0; i--) {
|
||||
printf("%c", matchingCloseBracket(stack[i]));
|
||||
}
|
||||
printf("\n");
|
||||
return 0; // Ожидается код завершения 0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user