Problem duckwander
User shoryu386
Submission Time 2023-01-09 20:56:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckwander.cpp: In function ‘int main()’:
duckwander.cpp:7:2: error: ‘ll’ was not declared in this scope
7 | ll coordX = 0, coordY = 0;
| ^~
duckwander.cpp:10:17: error: expected ‘;’ before ‘dist’
10 | string dir; ll dist;
| ^~~~~
| ;
duckwander.cpp:11:17: error: ‘dist’ was not declared in this scope
11 | cin >> dir >> dist;
| ^~~~
duckwander.cpp:13:20: error: ‘coordY’ was not declared in this scope
13 | if (dir == "UP") coordY += dist;
| ^~~~~~
duckwander.cpp:14:27: error: ‘coordY’ was not declared in this scope
14 | else if (dir == "DOWN") coordY -= dist;
| ^~~~~~
duckwander.cpp:15:27: error: ‘coordX’ was not declared in this scope
15 | else if (dir == "LEFT") coordX -= dist;
| ^~~~~~
duckwander.cpp:16:8: error: ‘coordX’ was