Problem arrayfind
User KYKY027
Submission Time 2026-03-03 11:44:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int binarySearchAlgo(int, std::vector<int>&)’:
arrayfind.cpp:32:11: error: a function-definition is not allowed here before ‘{’ token
32 | int main(){
| ^
arrayfind.cpp:60:1: error: expected ‘}’ at end of input
60 | }
| ^
arrayfind.cpp:3:57: note: to match this ‘{’
3 | int binarySearchAlgo(int needed, vector <int>& numArray){
| ^