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

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:8:18: error: ‘Y’ was not declared in this scope
8 | char character= Y || R;
| ^
cpicgame.cpp:8:23: error: ‘R’ was not declared in this scope
8 | char character= Y || R;
| ^
cpicgame.cpp:9:13: error: ‘C’ was not declared in this scope
9 | cin>>Y>>R>>C;
| ^
cpicgame.cpp:12:18: error: could not convert ‘std::swap<int>(r, y)’ from ‘void’ to ‘bool’
12 | r= r/2 ||swap(r,y) r=y y=r;
| ~~~~^~~~~
cpicgame.cpp:13:28: error: request for member ‘y’ in ‘r’, which is of non-class type ‘int’
13 | } else {y=y/2 || swap(r.y) r=y y=r;
| ^
cpicgame.cpp:18:12: error: expected ‘;’ before ‘{’ token
18 | else(r=0){cout<<"Yu Heng wins!";
| ^
| ;