insects.cpp: In function 'void find_unique()':
insects.cpp:51:13: error: reference to 'unique' is ambiguous
51 | unique.pb(i);
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:74,
from insects.cpp:2:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:234:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)'
234 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
| ^~~~~~
/usr/include/c++/10/pstl/glue_algorithm_defs.h:230:1: note: 'template<class _ExecutionPolicy, class _ForwardIterator, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _BinaryPredicate)'
230 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred);
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from insects.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:1004:5: note: 'template<class _FIter, class _BinaryPredicate> _FIter std::unique(_FIter, _FIter, _BinaryPredicate)'
1004 | unique(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~
/usr/include/c++/10/bits/stl_algo.h:973:5: note: 'template<class _FIter> _FIter std::unique(_FIter, _FIter)'
973 | unique(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~
insects.cpp:34:13: note: 'std::vector<int> unique'
34 | vector<int> unique;
| ^~~~~~
insects.cpp: In function 'bool histogram(int)':
insects.cpp:57:16: error: reference to 'unique' is ambiguous
57 | int area = unique.size();
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:74,
from insects.cpp:2:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:234:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)'
234 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
| ^~~~~~
/usr/include/c++/10/pstl/glue_algorithm_defs.h:230:1: note: 'template<class _ExecutionPolicy, class _ForwardIterator, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _BinaryPredicate)'
230 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred);
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from insects.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:1004:5: note: 'template<class _FIter, class _BinaryPredicate> _FIter std::unique(_FIter, _FIter, _BinaryPredicate)'
1004 | unique(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~
/usr/include/c++/10/bits/stl_algo.h:973:5: note: 'template<class _FIter> _FIter std::unique(_FIter, _FIter)'
973 | unique(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~
insects.cpp:34:13: note: 'std::vector<int> unique'
34 | vector<int> unique;
| ^~~~~~
insects.cpp:76:24: error: reference to 'unique' is ambiguous
76 | return area == h * unique.size();
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:74,
from insects.cpp:2:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:234:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)'
234 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);
| ^~~~~~
/usr/include/c++/10/pstl/glue_algorithm_defs.h:230:1: note: 'template<class _ExecutionPolicy, class _ForwardIterator, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _BinaryPredicate)'
230 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred);
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from insects.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:1004:5: note: 'template<class _FIter, class _BinaryPredicate> _FIter std::unique(_FIter, _FIter, _BinaryPredicate)'
1004 | unique(_ForwardIterator __first, _ForwardIterator __last,
| ^~~~~~
/usr/include/c++/10/bits/stl_algo.h:973:5: note: 'template<class _FIter> _FIter std::unique(_FIter, _FIter)'
973 | unique(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~
insects.cpp:34:13: note: 'std::vector<int> unique'
34 | vector<int> unique;
| ^~~~~~