Problem quantumcp
User chenyuming
Submission Time 2026-11-06 14:23:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

quantumcp.cpp: In function ‘int main()’:
quantumcp.cpp:34:9: error: jump to case label
34 | case 'X':
| ^~~
quantumcp.cpp:17:9: note: crosses initialization of ‘char z’
17 | char z = s.at(x-1);
| ^
quantumcp.cpp:45:9: error: jump to case label
45 | case 'Z':
| ^~~
quantumcp.cpp:35:9: note: crosses initialization of ‘char h’
35 | char h = s.at(x - 1);
| ^
quantumcp.cpp:17:9: note: crosses initialization of ‘char z’
17 | char z = s.at(x-1);
| ^
quantumcp.cpp:46:9: error: redeclaration of ‘char h’
46 | char h = s.at(x - 1);
| ^
quantumcp.cpp:35:9: note: ‘char h’ previously declared here
35 | char h = s.at(x - 1);
| ^
quantumcp.cpp:58:1: error: expected ‘}’ at end of input
58 | }
| ^
quantumcp.cpp:5:11: note: to match this ‘{’
5 | int main(){
|