| Problem | robotbombs |
|---|---|
| User | StormyGood |
| Submission Time | 2025-11-09 14:30:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if ((b[i]=="R"&&s.top=="L")||(b[i]=="L"%%s.top=="R")) continue;
| ^~~
robotbombs.cpp:13:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘const char [2]’ to binary ‘operator==’
13 | if ((b[i]=="R"&&s.top=="L")||(b[i]=="L"%%s.top=="R")) continue;
| ~~~~~^~~~~
| | |
| | const char [2]
| <unresolved overloaded function type>
robotbombs.cpp:13:43: error: expected primary-expression before ‘%’ token
13 | if ((b[i]=="R"&&s.top=="L")||(b[i]=="L"%%s.top=="R")) continue;
| ^