Problem | duckwander |
---|---|
User | LichX |
Submission Time | 2024-06-18 10:47:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwander.cpp: In function ‘int main()’:
duckwander.cpp:12:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (arr[i] == "DOWN") {
| ^~~~~~
duckwander.cpp:14:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | } else if (arr[i] == "UP") {
| ^~~~
duckwander.cpp:16:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | } else if (arr[i] == "LEFT") {
| ^~~~~~
duckwander.cpp:18:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | } else if (arr[i] == "RIGHT") {
| ^~~~~~~
duckwander.cpp:22:16: error: expected ‘;’ before ‘return’
22 | cout << x << y
| ^
| ;
23 | return 0;
| ~~~~~~