Problem binarysearch
User abdullahmazlan13
Submission Time 2026-06-25 15:56:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:15:12: error: expected primary-expression before ‘>’ token
15 | while (l => r) {int mid = (l + r) / 2;
| ^
binarysearch.cpp:16:6: error: ‘arr’ was not declared in this scope
16 | if (arr [mid] >= x){
| ^~~
binarysearch.cpp:16:19: error: ‘x’ was not declared in this scope
16 | if (arr [mid] >= x){
| ^