Problem compleecode
User AlphanumericUsername
Submission Time 2024-05-25 20:29:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

compleecode.cpp: In function ‘int solve5(std::vector<int>)’:
compleecode.cpp:66:27: error: no match for ‘operator-’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘<unresolved overloaded function type>’)
66 | res = unique(x(), v.y()) - x;
| ~~~~~~~~~~~~~~~~~~ ^
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from compleecode.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:864:7: note: candidate: ‘__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-(__