Problem | lis |
---|---|
User | PlayVoltz |
Submission Time | 2023-07-22 22:26:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis.cpp: In function ‘int main()’:
lis.cpp:15:56: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘int’)
15 | lower_bound(vect.begin(), vect.end(), a) = a;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
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 lis.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:784:11: note: candidate: ‘constexpr __gnu_cxx::__normal_iterator<int*, std::vector<int> >& __gnu_cxx::__normal_iterator<int*, std::vector<int> >::operator=(const __gnu_cxx::__normal_iterator<int*, std::vector<int> >&)’
784 | class __normal_iterator
| ^~~~~~~~~~~~~~~~~