Problem | duckwander |
---|---|
User | niicoletong |
Submission Time | 2025-06-17 21:51:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckwander.cpp: In function ‘int main()’:
duckwander.cpp:9:6: error: ‘direction’ was not declared in this scope; did you mean ‘sigaction’?
9 | if (direction == "UP") {
| ^~~~~~~~~
| sigaction
duckwander.cpp:10:18: error: ‘K’ was not declared in this scope
10 | y += K;
| ^
duckwander.cpp:12:18: error: ‘K’ was not declared in this scope
12 | y -= K;
| ^
duckwander.cpp:14:18: error: ‘K’ was not declared in this scope
14 | x -= K;
| ^
duckwander.cpp:16:18: error: ‘K’ was not declared in this scope
16 | x += K;
| ^
duckwander.cpp: At global scope:
duckwander.cpp:20:5: error: ‘cout’ does not name a type
20 | cout << x << " " << y << endl;
| ^~~~
duckwander.cpp:21:5: error: expected unqualified-id before ‘return’