Problem cpicgame
User Lerongt
Submission Time 2026-06-23 11:04:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:6:9: error: expected primary-expression before ‘char’
6 | cin >> char=C >> Y >> R;
| ^~~~
cpicgame.cpp:7:6: error: ‘C’ was not declared in this scope
7 | if( C = Y);{cout R/2 }
| ^
cpicgame.cpp:7:18: error: expected ‘;’ before ‘R’
7 | if( C = Y);{cout R/2 }
| ^~
| ;
cpicgame.cpp:8:3: error: ‘else’ without a previous ‘if’
8 | else if (C = R);{cout S=Y/2}
| ^~~~
cpicgame.cpp:8:12: error: ‘C’ was not declared in this scope
8 | else if (C = R);{cout S=Y/2}
| ^
cpicgame.cpp:8:24: error: expected ‘;’ before ‘S’
8 | else if (C = R);{cout S=Y/2}
| ^~
| ;