Problem arrayfind
User burningout
Submission Time 2025-02-18 01:14:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int binarySearch(std::vector<int>, int)’:
arrayfind.cpp:14:12: error: a function-definition is not allowed here before ‘{’ token
14 | int main() {
| ^
arrayfind.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
arrayfind.cpp:5:18: note: to match this ‘{’
5 | while (low<high){
| ^
arrayfind.cpp:31:1: error: expected ‘}’ at end of input
31 | }
| ^
arrayfind.cpp:3:39: note: to match this ‘{’
3 | int binarySearch(vector<int> a, int x){
| ^