Problem binarysearch
User xyzidk9
Submission Time 2026-07-21 09:07:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int32_t main()’:
binarysearch.cpp:11:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
11 | sort(arr,arr+n);
| ^~~~
| qsort
binarysearch.cpp:17:7: error: ‘a’ was not declared in this scope
17 | if(a[m] < x)l = m + 1;
| ^
binarysearch.cpp:17:14: error: ‘x’ was not declared in this scope
17 | if(a[m] < x)l = m + 1;
| ^
binarysearch.cpp:17:16: error: ‘l’ was not declared in this scope
17 | if(a[m] < x)l = m + 1;
| ^