Problem bracketex
User CastyLoz17
Submission Time 2024-03-13 11:14:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
8 | if (d[i] == "(") {
| ^~~
bracketex.cpp:10:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | } else if (d[i] == ")") {
| ^~~
bracketex.cpp:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | } else if (d[i] == "[") {
| ^~~
bracketex.cpp:14:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | } else if (d[i] == "]") {
| ^~~
bracketex.cpp:16:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | } else if (d[i] == "{") {
| ^~~
bracketex.cpp:18:28: error: ISO