Problem | bracketex |
---|---|
User | Altlastor |
Submission Time | 2024-06-29 21:59:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if (e[i] == "(") q.push(")");
| ^~~
bracketex.cpp:17:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | else if (e[i] == "[") q.push("]");
| ^~~
bracketex.cpp:18:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | else if (e[i] == "{") q.push("}");
| ^~~
bracketex.cpp:19:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | else if (e[i] == ")" or e[i] == "]" or e[i] == "}"){
| ^~~
bracketex.cpp:19:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | else if (e[i] == ")" or e[i] == "]" or e[i] == "}"){
| ^~~