| Problem | arrayfind |
|---|---|
| User | scse513 |
| Submission Time | 2026-11-04 14:42:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:20:28: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
20 | int x = lower_bound(A, A + L, queries[i]);
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
| |
| int*
arrayfind.cpp:23:10: error: no matching function for call to ‘sort()’
23 | sort()
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from arrayfind.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
arrayfind.cpp:23:10: note: candida