Problem rotarylock
User ZivTheONe
Submission Time 2023-02-02 12:27:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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);
| ^~~
rotarylock.cpp: In function ‘int main()’:
rotarylock.cpp:57:7: error: ‘class Solution’ has no member named ‘smallPrime’
57 | q.smallPrime();
| ^~~~~~~~~~