Problem arrayfind
User Daniel0liong
Submission Time 2023-06-25 15:10:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:21:21: error: invalid conversion from ‘long long int*’ to ‘ll’ {aka ‘long long int’} [-fpermissive]
21 | lo=lower_bound(arr,arr+n,tem);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
| |
| long long int*
arrayfind.cpp:22:21: error: invalid conversion from ‘long long int*’ to ‘ll’ {aka ‘long long int’} [-fpermissive]
22 | hi=upper_bound(arr,arr+n,tem);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~
| |
| long long int*