Problem waterbottles
User smartsword
Submission Time 2025-03-03 17:59:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles.cpp:9:5: error: redefinition of ‘int dj [4]’
9 | int dj[4] = {0,0,1,-1
| ^~
waterbottles.cpp:8:5: note: ‘int dj [4]’ previously defined here
8 | int dj[4] = {1, -1, 0 ,0};
| ^~
waterbottles.cpp:16:1: error: expected ‘}’ before ‘int’
16 | int main()
| ^~~
waterbottles.cpp:9:13: note: to match this ‘{’
9 | int dj[4] = {0,0,1,-1
| ^