Problem arrayfind
User Henries
Submission Time 2024-10-03 14:04:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp:3:43: error: ‘target’ has not been declared
3 | long long bin_search(vector<long long> v, target){
| ^~~~~~
arrayfind.cpp: In function ‘long long int bin_search(std::vector<long long int>, int)’:
arrayfind.cpp:8:17: error: ‘target’ was not declared in this scope
8 | if (v[mid] == target){
| ^~~~~~