Problem | bracketex |
---|---|
User | MagicHenry |
Submission Time | 2023-06-25 14:54:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:21:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if (a == "}" || a == "]" || a == ")") {
| ^~~
bracketex.cpp:21:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if (a == "}" || a == "]" || a == ")") {
| ^~~
bracketex.cpp:21:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if (a == "}" || a == "]" || a == ")") {
| ^~~
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