Problem bracketex
User LiuZq
Submission Time 2023-06-25 14:48:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:19:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
19 | if (s[i] == "{")
| ^~~
bracketex.cpp:23:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
23 | if (s[i] == "}")
| ^~~
bracketex.cpp:27:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
27 | if (s[i] == "[")
| ^~~
bracketex.cpp:31:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
31 | if (s[i] == "]")
| ^~~