Problem cpicgame
User Ronaldo7
Submission Time 2026-06-23 10:49:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicgame.cpp: In function ‘int main()’:
cpicgame.cpp:12:18: error: no match for ‘operator&&’ (operand types are ‘bool’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
12 | if (x == y == 1 && r is "R"){
| ~~~~~~~~~~~ ^~ ~
| | |
| bool std::string {aka std::__cxx11::basic_string<char>}
cpicgame.cpp:12:18: note: candidate: ‘operator&&(bool, bool)’ <built-in>
12 | if (x == y == 1 && r is "R"){
| ~~~~~~~~~~~~^~~~
cpicgame.cpp:12:18: note: no known conversion for argument 2 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
cpicgame.cpp:12:22: error: expected ‘)’ before ‘is’
12 | if (x == y == 1 && r is "R"){
| ~ ^~~
| )
cpicgame.cpp:14:10: error: expected ‘(’ before ‘{’ token
14 | }else if{x == 10 && y == 2 && r is "Y"){
| ^
|