Problem arrayfind
User Yizhou
Submission Time 2024-06-02 13:21:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:19:17: error: invalid operands of types ‘int’ and ‘int*’ to binary ‘operator-’
19 | int *biggest=l-upper_bound(arr,arr+l,no);
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| int int*
arrayfind.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
arrayfind.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^