Problem | bracketex |
---|---|
User | thelusidian |
Submission Time | 2024-04-24 17:47:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (val == "{"){
| ^~~
bracketex.cpp:12:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | } else if (val == "}"){
| ^~~
bracketex.cpp:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | } else if (val == "["){
| ^~~
bracketex.cpp:16:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | } else if (val == "]"){
| ^~~
bracketex.cpp:18:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | } else if (val == "("){
| ^~~
bracketex.cpp:20:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2