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

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:31:27: error: ‘x’ was not declared in this scope
31 | cout << binarySearch(a, x) << "\n";
| ^
arrayfind.cpp:34:1: error: expected ‘}’ at end of input
34 | }
| ^
arrayfind.cpp:16:12: note: to match this ‘{’
16 | int main() {
| ^