Problem | bracketex |
---|---|
User | YII1719 |
Submission Time | 2023-11-08 15:58:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp:4:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
4 | stack<char> s;
| ^~~~~
| obstack
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:14:4: error: ‘s’ was not declared in this scope
14 | s.push(x);
| ^
bracketex.cpp:15:27: error: ‘s’ was not declared in this scope
15 | } else if (x == ')' && !s.empty () && s.top() == '(') {
| ^
bracketex.cpp:28:6: error: ‘s’ was not declared in this scope
28 | if (s.empty())
| ^
bracketex.cpp:33:11: error: expected ‘;’ before ‘return’
33 | << "\n"
| ^
| ;
34 | return 0;
| ~~~~~~