| Problem | uniquenumbers_easy |
|---|---|
| User | carson |
| Submission Time | 2026-01-09 21:12:25 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
uniquenumbers_easy.cpp: In function ‘int main()’:
uniquenumbers_easy.cpp:13:32: error: no matching function for call to ‘unique(<unresolved overloaded function type>, std::vector<long long int>::iterator)’
13 | a.erase(unique(a.begin,a.end()),a.end());
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from uniquenumbers_easy.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<long long int*, std::vector<long long int> >]’
1001 | unique(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~
/usr/include/c++/9/bits/stl_algo.h:1001:29: note: no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘__gnu_cxx::__normal_iterator<long long int*, std