Problem sandd
User 0ncarat
Submission Time 2024-05-11 11:44:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:18: error: ‘lo’ was not declared in this scope; did you mean ‘low’?
8 | int mid=(lo+hi)/2;
| ^~
| low
sandd.cpp:8:21: error: ‘hi’ was not declared in this scope
8 | int mid=(lo+hi)/2;
| ^~
sandd.cpp:9:12: error: ‘arr’ was not declared in this scope
9 | if(arr[mid]<m)lo=mid+1;
| ^~~
sandd.cpp:9:21: error: ‘m’ was not declared in this scope
9 | if(arr[mid]<m)lo=mid+1;
| ^
sandd.cpp:12:13: error: ‘pos’ was not declared in this scope; did you mean ‘pow’?
12 | pos=mid;
| ^~~
| pow