Problem | duckwander |
---|---|
User | Priyankha13 |
Submission Time | 2023-11-08 15:45:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwander.cpp: In function ‘int main()’:
duckwander.cpp:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (i == "UP") {
| ^~~~
duckwander.cpp:14:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | } else if (i == "DOWN") {
| ^~~~~~
duckwander.cpp:16:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | } else if (i == "RIGHT") {
| ^~~~~~~
duckwander.cpp:18:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | } else if (i == "LEFT") {
| ^~~~~~