izbori.cpp: In function 'int main()':
izbori.cpp:18:9: error: reference to 'count' is ambiguous
18 | count=0, num=-1;
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from izbori.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: candidates are: '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)
| ^~~~~
izbori.cpp:5:38: note: 'int count'
5 | int n, m, k, ans=0, poi[N], a[N][M], count, num, cnt[M];
| ^~~~~
izbori.cpp:33:25: error: reference to 'count' is ambiguous
33 | if((cnt[curr] > count) or (cnt[curr] == count and curr < num)){
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from izbori.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: candidates are: '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)
| ^~~~~
izbori.cpp:5:38: note: 'int count'
5 | int n, m, k, ans=0, poi[N], a[N][M], count, num, cnt[M];
| ^~~~~
izbori.cpp:33:49: error: reference to 'count' is ambiguous
33 | if((cnt[curr] > count) or (cnt[curr] == count and curr < num)){
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from izbori.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: candidates are: '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)
| ^~~~~
izbori.cpp:5:38: note: 'int count'
5 | int n, m, k, ans=0, poi[N], a[N][M], count, num, cnt[M];
| ^~~~~
izbori.cpp:35:13: error: reference to 'count' is ambiguous
35 | count=cnt[curr];
| ^~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from izbori.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:4077:5: note: candidates are: '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)
| ^~~~~
izbori.cpp:5:38: note: 'int count'
5 | int n, m, k, ans=0, poi[N], a[N][M], count, num, cnt[M];
| ^~~~~