This commit is contained in:
Bohdan Kapliuk 2024-10-27 22:48:48 +02:00
parent 29058ba560
commit 7d01f2a2cf

View File

@ -42,6 +42,10 @@ int main() {
} }
} }
} }
if (x > 0) {
printf("Missing closing brackets: %c\n", stack[x-1]);
} else {
printf("All brackets OK\n"); printf("All brackets OK\n");
}
return 0; return 0;
} }