Problem bracketex
User sawntoe
Submission Time 2023-01-18 15:22:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp: In function ‘int main()’:
bracketex.cpp:13:9: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
13 | case "(":
| ^~~
| |
| const char*
bracketex.cpp:13:9: error: ‘(int)((const char*)"(")’ is not a constant expression
bracketex.cpp:16:9: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
16 | case ")":
| ^~~
| |
| const char*
bracketex.cpp:16:9: error: ‘(int)((const char*)")")’ is not a constant expression
bracketex.cpp:19:9: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
19 | case "[":
| ^~~
| |
| const char*
bracketex.cpp:19:9: error: ‘(int)((const char*)"[")’ is not a constant expression
bracketex.cpp:22:9: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
22 | case "]":
|