Problem waterbottles
User godex
Submission Time 2025-03-03 17:53:06
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:22:30: error: ‘dj’ was not declared in this scope; did you mean ‘j’?
22 | int new_j = j + dj[l];
| ^~
| j