Problem | duckwander |
---|---|
User | pseudocoder101 |
Submission Time | 2025-06-16 16:35:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwander.cpp: In function ‘int main()’:
duckwander.cpp:11:6: error: expected ‘(’ before ‘direction’
11 | if direction=="UP" y+=K;
| ^~~~~~~~~
| (
duckwander.cpp:12:6: error: expected ‘(’ before ‘direction’
12 | if direction=="DOWN" y-=K;
| ^~~~~~~~~
| (
duckwander.cpp:13:6: error: expected ‘(’ before ‘direction’
13 | if direction=="LEFT" x-=K;
| ^~~~~~~~~
| (
duckwander.cpp:14:6: error: expected ‘(’ before ‘direction’
14 | if direction=="RIGHT" x+=K:
| ^~~~~~~~~
| (
duckwander.cpp:16:12: error: expected ‘;’ before ‘}’ token
16 | cout<<x<<y
| ^
| ;
17 | }
| ~