Problem cpicgame
User WoshiYC
Submission Time 2026-06-23 10:24:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:9:24: error: expected ‘)’ before ‘;’ token
9 | if (y == 1; and c =="Y";) {cout << "Yu Heng wins!"}
| ~ ^
| )
cpicgame.cpp:9:25: error: expected primary-expression before ‘)’ token
9 | if (y == 1; and c =="Y";) {cout << "Yu Heng wins!"}
| ^
cpicgame.cpp:10:1: error: ‘else’ without a previous ‘if’
10 | else if (r == 1; and c == "R";) {cout << "“Raphael wins!"}
| ^~~~
cpicgame.cpp:10:30: error: expected ‘)’ before ‘;’ token
10 | else if (r == 1; and c == "R";) {cout << "“Raphael wins!"}
| ~ ^
| )
cpicgame.cpp:10:31: error: expected primary-expression before ‘)’ token
10 | else if (r == 1; and c == "R";) {cout << "“Raphael wins!"}
| ^
cpicgame.cp