Problem waterbottles
User godex
Submission Time 2025-03-03 17:52:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles.cpp: In function ‘int32_t main()’:
waterbottles.cpp:2:13: error: expected ‘,’ or ‘;’ before ‘long’
2 | #define int long long
| ^~~~
waterbottles.cpp:7:2: note: in expansion of macro ‘int’
7 | int dj[4] = {0, 0, 1, -1}
| ^~~
waterbottles.cpp:21:30: error: ‘di’ was not declared in this scope; did you mean ‘i’?
21 | int new_i = i + di[l];
| ^~
| i