Problem | waterbottles |
---|---|
User | idontlikeboystrustme |
Submission Time | 2025-03-04 11:41:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
waterbottles.cpp:5:5: error: redefinition of ‘int dj [4]’
5 | int dj[4] = {0, 0, 1, -1};
| ^~
waterbottles.cpp:4:5: note: ‘int dj [4]’ previously defined here
4 | int dj[4] = {1, -1, 0, 0};
| ^~
waterbottles.cpp: In function ‘int main()’:
waterbottles.cpp:16:18: error: ‘i’ was not declared in this scope
16 | for(int j = 0; i <h; j++){
| ^
waterbottles.cpp:19:21: error: ‘di’ was not declared in this scope; did you mean ‘dj’?
19 | int new_i = i + di[l];
| ^~
| dj