hamburg.cpp: In function 'void add_point(int, int)':
hamburg.cpp:25:25: error: reference to 'count' is ambiguous
25 | count--;
| ^~~~~
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
hamburg.cpp:13:19: note: 'int count'
13 | int cl[M], op[M], count;
| ^~~~~
hamburg.cpp:36:48: error: reference to 'count' is ambiguous
36 | for (auto cc: change) used[cc] = true, count++;
| ^~~~~
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
hamburg.cpp:13:19: note: 'int count'
13 | int cl[M], op[M], count;
| ^~~~~
hamburg.cpp: In function 'void rec()':
hamburg.cpp:42:14: error: reference to 'count' is ambiguous
42 | if (!count && points.size() <= k) {
| ^~~~~
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
hamburg.cpp:13:19: note: 'int count'
13 | int cl[M], op[M], count;
| ^~~~~
hamburg.cpp:42:37: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
42 | if (!count && points.size() <= k) {
| ~~~~~~~~~~~~~~^~~~
hamburg.cpp:49:27: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
49 | if (points.size() >= k)
| ~~~~~~~~~~~~~~^~~~
hamburg.cpp:119:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for (int h = 0; h < Y.size(); h++) {
| ~~^~~~~~~~~~
hamburg.cpp: In function 'int main()':
hamburg.cpp:163:9: error: reference to 'count' is ambiguous
163 | count = n;
| ^~~~~
In file included from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from hamburg.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4077 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
hamburg.cpp:13:19: note: 'int count'
13 | int cl[M], op[M], count;
| ^~~~~