Problem | chimera |
---|---|
User | shoryu386 |
Submission Time | 2024-06-28 21:10:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
chimera.cpp: In function ‘int query(int, int)’:
chimera.cpp:27:42: error: no matching function for call to ‘lower_bound(int [1001], int*)’
27 | return lower_bound(item[L], item[L]+1001) - item[L];
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from chimera.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:1004:5: note: candidate: ‘template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)’
1004 | lower_bound(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algobase.h:1004:5: note: template argument deduction/substitution failed:
chimera.cpp:27:42: note: candidate expects 3 arguments, 2 provided
27 | retu