Problem binarysearch
User Magenta
Submission Time 2026-06-25 15:00:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binarysearch.cpp: In function ‘int main()’:
binarysearch.cpp:16:43: error: ‘target’ was not declared in this scope
16 | cout << lower_bound(A.begin(), A.end(), target) - A.begin();
| ^~~~~~
binarysearch.cpp:17:14: error: expected ‘;’ before ‘}’ token
17 | cout << "\n"
| ^
| ;
18 | }
| ~