Problem arrayfind
User Jaysonwee22
Submission Time 2026-06-25 16:21:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:13:19: error: expected ‘;’ before ‘}’ token
13 | cin >> arr.at(i)
| ^
| ;
14 | }
| ~
arrayfind.cpp:26:32: error: ‘first_b_search’ was not declared in this scope
26 | cout << "Smaller: " << first_b_search(arr, x) << ", Greater: " << n+1-second_b_search(arr, x) << "\n";
| ^~~~~~~~~~~~~~
arrayfind.cpp:26:79: error: ‘second_b_search’ was not declared in this scope
26 | cout << "Smaller: " << first_b_search(arr, x) << ", Greater: " << n+1-second_b_search(arr, x) << "\n";
| ^~~~~~~~~~~~~~~
arrayfind.cpp:27:5: error: expected ‘}’ at end of input
27 | }
| ^
arrayfind.cpp:6:15: note: to match