refresh
This commit is contained in:
parent
6ce2baa0eb
commit
ca581ad16b
@ -80,8 +80,10 @@ int main() {
|
||||
}
|
||||
|
||||
if (!chyba && vrch >= 0) {
|
||||
printf("Missing closing brackets: ");
|
||||
for (int j = vrch; j >= 0; j--) {
|
||||
char expected;
|
||||
switch (zasobnik[vrch]) {
|
||||
switch (zasobnik[j]) {
|
||||
case '(':
|
||||
expected = ')';
|
||||
break;
|
||||
@ -98,7 +100,9 @@ int main() {
|
||||
expected = '?';
|
||||
break;
|
||||
}
|
||||
printf("Missing closing brackets: %c\n", expected);
|
||||
printf("%c", expected);
|
||||
}
|
||||
printf("\n");
|
||||
chyba = 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user