| Problem | bracketex |
|---|---|
| User | Junxian |
| Submission Time | 2026-04-18 10:26:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:13:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if(stk.top() == "(") {
| ^~~
bracketex.cpp:20:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | else if (s[i] == "]") {
| ^~~
bracketex.cpp:21:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if(stk.top() == "[") {
| ^~~
bracketex.cpp:28:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
28 | else if (s[i] == "}") {
| ^~~
bracketex.cpp:29:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
29 | if(stk.top() == "{") {
| ^~~
bracketex.cpp:37:13: error: ‘str’ was not declared in this scope; did you mean ‘stk’?
37 |