a1
This commit is contained in:
parent
8e17d44983
commit
b96ad19785
@ -20,7 +20,7 @@ int main() {
|
|||||||
x++;
|
x++;
|
||||||
break;
|
break;
|
||||||
} else if (vstup[j] == brackets1[i]) {
|
} else if (vstup[j] == brackets1[i]) {
|
||||||
char expected;
|
char expected = '\0';
|
||||||
if (stack[x-1] == '{') expected = '}';
|
if (stack[x-1] == '{') expected = '}';
|
||||||
else if (stack[x-1] == '[') expected = ']';
|
else if (stack[x-1] == '[') expected = ']';
|
||||||
else if (stack[x-1] == '(') expected = ')';
|
else if (stack[x-1] == '(') expected = ')';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user