Problem rotarylock
User 56cy
Submission Time 2023-01-07 16:28:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rotarylock.cpp: In function ‘int main()’:
rotarylock.cpp:23:12: error: invalid types ‘int[int]’ for array subscript
23 | int l = s[d], r = e[d];
| ^
rotarylock.cpp:24:4: error: invalid types ‘int[int]’ for array subscript
24 | s[d] = (l + s) % (2 * k);
| ^
rotarylock.cpp:25:9: error: ‘r’ was not declared in this scope
25 | e[d] = (r + s) % (2 * k);
| ^