Problem arrayfind
User retxed
Submission Time 2026-11-04 15:33:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:16:31: error: invalid operands of types ‘long long int’ and ‘long long int*’ to binary ‘operator-’
16 | long long upperindex = N-upper_bound(A,A+N,B);
| ~^~~~~~~~~~~~~~~~~~~~~
| | |
| | long long int*
| long long int