Problem bracketex
User MagicHenry
Submission Time 2023-06-25 14:55:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:22:28: error: ‘class std::stack<char>’ has no member named ‘lastElement’
22 | if (revert(a) == seq.lastElement()) {
| ^~~~~~~~~~~
bracketex.cpp:34:20: error: expected ‘;’ before ‘}’ token
34 | cout << 'Valid'
| ^
| ;
35 | }
| ~