Problem binarysearch
User Zaydluq
Submission Time 2026-06-25 14:58:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:19:17: error: ‘x’ was not declared in this scope
19 | if(a[mid] >= x) {
| ^
binarysearch.cpp:27:23: error: expected ‘;’ before ‘}’ token
27 | cout << ans << "\n"
| ^
| ;
28 | }
| ~