Problem quantumcp
User NotTYR
Submission Time 2025-11-17 10:54:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

quantumcp.cpp: In function ‘int main()’:
quantumcp.cpp:15:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | if(g=="H"){
| ^~~
quantumcp.cpp:18:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | if(g=="X"){
| ^~~
quantumcp.cpp:21:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | if(g=="Z"){
| ^~~
quantumcp.cpp:27:42: error: could not convert ‘{"+", "-", "0", "1"}’ from ‘<brace-enclosed initializer list>’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
27 | string arr = {"+","-","0","1"}
| ^
| |
| <brace-enclosed initializer list>
quantumcp.cpp:30:66: error: taking a