Problem cpicgame
User yq
Submission Time 2026-06-23 10:42:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:4:15: error: ‘Y’ was not declared in this scope
4 | int yuheng = Y;
| ^
cpicgame.cpp:5:15: error: ‘R’ was not declared in this scope
5 | int raphael= R;
| ^
cpicgame.cpp:6:7: error: conflicting declaration ‘char yuheng’
6 | char yuheng = 'Y';
| ^~~~~~
cpicgame.cpp:4:6: note: previous declaration as ‘int yuheng’
4 | int yuheng = Y;
| ^~~~~~
cpicgame.cpp:7:7: error: conflicting declaration ‘char raphael’
7 | char raphael= 'R';
| ^~~~~~~
cpicgame.cpp:5:6: note: previous declaration as ‘int raphael’
5 | int raphael= R;
| ^~~~~~~
cpicgame.cpp:9:13: error: ‘C’ was not declared in this scope
9 | cin>>Y>>R>>C;
| ^
cpicgame.cpp:10:20: error: expected ‘)’ before ‘;’ token
10 | while(Y!= 0, C!=0;){
| ~