Problem arrayfind
User caffeine
Submission Time 2023-01-03 16:45:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int32_t main()’:
arrayfind.cpp:12:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(arr,arr+n);
| ^~~~
| qsort
arrayfind.cpp:17:16: error: ‘upper_bound’ was not declared in this scope
17 | int ub=upper_bound(arr,arr+n,t)-arr;
| ^~~~~~~~~~~