Problem binarysearch
User JT853
Submission Time 2026-06-25 15:07:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:10:10: error: ‘n’ was not declared in this scope
10 | int r = n - 1;
| ^
binarysearch.cpp:15:6: error: ‘arr’ was not declared in this scope
15 | if(arr[mid] == x){
| ^~~
binarysearch.cpp:15:18: error: ‘x’ was not declared in this scope
15 | if(arr[mid] == x){
| ^