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

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:6:9: error: ‘C’ was not declared in this scope
6 | cin >> C >> Y >> R;
| ^
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 Y/2}
| ^~~~
cpicgame.cpp:8:24: error: expected ‘;’ before ‘Y’
8 | else if (C = R);{cout Y/2}
| ^~
| ;