Problem cpicgame
User YYCMMR5382
Submission Time 2026-06-23 11:23:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if ( C == "Y" and Y >=R)
| ^~~
cpicgame.cpp:15:12: error: ‘c’ was not declared in this scope
15 | else if ( c == "Y" and Y <= R)
| ^
cpicgame.cpp:16:19: error: expected primary-expression before ‘)’ token
16 | { cout << "Tie!";)
| ^
cpicgame.cpp:19:3: error: expected ‘}’ before ‘else’
19 | else if (c == "R" and R <= Y)
| ^~~~
cpicgame.cpp:16:2: note: to match this ‘{’
16 | { cout << "Tie!";)
| ^