Problem nis
User Ok
Submission Time 2023-02-03 21:54:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nis.cpp: In function ‘int main()’:
nis.cpp:73:39: error: no matching function for call to ‘unique(std::vector<int>::iterator, <unresolved overloaded function type>)’
73 | sat.resize(unique(sat.begin(),sat.end) - sat.begin());
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from nis.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:1001:5: note: candidate: ‘_FIter std::unique(_FIter, _FIter) [with _FIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >]’
1001 | unique(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~
/usr/include/c++/9/bits/stl_algo.h:1001:55: note: no known conversion for argument 2 from ‘<unresolved overloaded function type>’ to ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’
1001 | unique(_ForwardIterator