Problem | bracketex |
---|---|
User | vadar2525 |
Submission Time | 2025-09-01 15:57:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:14:6: error: ‘x’ was not declared in this scope
14 | if(x.empty()){
| ^
bracketex.cpp:15:11: error: ‘b’ was not declared in this scope
15 | x.push(b);
| ^
bracketex.cpp:18:6: error: ‘b’ was not declared in this scope
18 | if(b == '(' or b == '[' or b == '{'){
| ^
bracketex.cpp:19:4: error: ‘x’ was not declared in this scope
19 | x.push(b);
| ^
bracketex.cpp:21:25: error: ‘x’ was not declared in this scope
21 | else if( b == '(' and x.top() == ')'){
| ^
bracketex.cpp:31:5: error: ‘x’ was not declared in this scope
31 | if(x.empty()){
| ^