Problem binarysearch
User abdullahmazlan13
Submission Time 2026-06-25 16:03:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:14:9: error: ‘vec’ was not declared in this scope
14 | cin >> vec [A];
| ^~~
binarysearch.cpp:17:12: error: expected primary-expression before ‘>’ token
17 | while (l => r) {int mid = (l + r) / 2;
| ^
binarysearch.cpp:27:1: error: expected primary-expression before ‘}’ token
27 | }
| ^