Problem cpicgame
User Devthethala
Submission Time 2026-06-23 10:59:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:10:13: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
10 | if (C = "Y") {
| ^~~
| |
| const char*
cpicgame.cpp:13:22: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
13 | if (choice = "a"){
| ^~~
| |
| const char*
cpicgame.cpp:18:17: error: expected ‘}’ before ‘else’
18 | else if (y == 0){
| ^~~~
cpicgame.cpp:15:24: note: to match this ‘{’
15 | if (r == 0){
| ^
cpicgame.cpp:20:34: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
20 | if (choice = "b");
| ^~~
| |
|