Problem | lis |
---|---|
User | thelusidian |
Submission Time | 2025-02-06 13:27:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis.cpp: In function ‘int main()’:
lis.cpp:20:63: error: no matching function for call to ‘replace(std::vector<long long int>::iterator, std::vector<long long int>::iterator, __gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >&, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
20 | replace(LIS.begin(), LIS.end(), current2, original[i]);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lis.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4401:5: note: candidate: ‘template<class _FIter, class _Tp> void std::replace(_FIter, _FIter, const _Tp&, const _Tp&)’
4401 | replace(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~~
/usr/include/c++/9/bits/stl_algo.h:4