vudu.cpp: In function 'int main()':
vudu.cpp:56:34: error: no matching function for call to 'sort(__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >)'
sort(unique(b.begin(), b.end()));
^
In file included from /usr/include/c++/7/algorithm:62:0,
from vudu.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
^~~~
/usr/include/c++/7/bits/stl_algo.h:4826:5: note: template argument deduction/substitution failed:
vudu.cpp:56:34: note: candidate expects 2 arguments, 1 provided
sort(unique(b.begin(), b.end()));
^
In file included from /usr/include/c++/7/algorithm:62:0,
from vudu.cpp:3:
/usr/include/c++/7/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
/usr/include/c++/7/bits/stl_algo.h:4856:5: note: template argument deduction/substitution failed:
vudu.cpp:56:34: note: candidate expects 3 arguments, 1 provided
sort(unique(b.begin(), b.end()));
^