Problem bracketex
User thelusidian
Submission Time 2024-04-24 17:56:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (val == "{"){
| ^~~
bracketex.cpp:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | } else if (val == "}"){
| ^~~
bracketex.cpp:15:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | } else if (val == "["){
| ^~~
bracketex.cpp:17:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | } else if (val == "]"){
| ^~~
bracketex.cpp:19:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | } else if (val == "("){
| ^~~
bracketex.cpp:21:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
2