c
This commit is contained in:
parent
104b94822f
commit
990d31d7fe
@ -39,7 +39,7 @@ int main(void) {
|
||||
if (ch == '(' || ch == '{' || ch == '[' || ch == '<') {
|
||||
top++;
|
||||
stack[top] = ch;
|
||||
pos[top] = i + 1; // indexovanie od 1
|
||||
pos[top] = i; // indexovanie od 1
|
||||
}
|
||||
// ak je zatváracia zátvorka
|
||||
else if (ch == ')' || ch == '}' || ch == ']' || ch == '>') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user