This commit is contained in:
Weber 2024-10-31 18:05:16 +00:00
parent 50ab0b2ac6
commit de36b5531b

View File

@ -92,10 +92,10 @@ void skontrolujZatvorky(const char *kod) {
}
if (!jePrazdny(&z)) {
printf("Missing closing brackets:");
printf("Missing closing brackets: ");
while (!jePrazdny(&z)) {
char nezodpovedajuca = vyber(&z);
printf("%c ",
printf("%c",
(nezodpovedajuca == '{') ? '}' :
(nezodpovedajuca == '[') ? ']' :
(nezodpovedajuca == '<') ? '>' : ')');