Problem arrayfind
User 123
Submission Time 2026-07-18 10:12:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:18:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
18 | sort(arr.begin(), arr.end());
| ^~~~
| qsort
arrayfind.cpp:25:16: error: ‘upper_bound’ was not declared in this scope
25 | auto it2 = upper_bound(arr.begin(), arr.end(), x);
| ^~~~~~~~~~~