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

Compile Error

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