Problem | rotarylock |
---|---|
User | ZivTheONe |
Submission Time | 2023-02-02 12:28:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rotarylock.cpp: In member function ‘long long unsigned int Solution::binarySearch(int, long long unsigned int)’:
rotarylock.cpp:20:43: error: ‘arr’ was not declared in this scope
20 | if (mid <= dial) res = (res + arr[mid]) % K;
| ^~~
rotarylock.cpp:24:17: error: ‘arr’ was not declared in this scope
24 | arr[mid] = (add + arr[mid] % K);
| ^~~