minerals.cpp: In function 'int Query(int)':
minerals.cpp:131:7: error: reference to 'count' is ambiguous
131 | --count[type];
| ^~~~~
minerals.cpp:114:5: note: candidates are: 'int {anonymous}::count [86001]'
114 | int count[2 * MAX_N + 1];
| ^~~~~
In file included from /usr/include/c++/13/chrono:48,
from minerals.cpp:6:
/usr/include/c++/13/bits/stl_algo.h:4072:5: note: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4072 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
minerals.cpp:132:9: error: reference to 'count' is ambiguous
132 | if (count[type] == 0) {
| ^~~~~
minerals.cpp:114:5: note: candidates are: 'int {anonymous}::count [86001]'
114 | int count[2 * MAX_N + 1];
| ^~~~~
/usr/include/c++/13/bits/stl_algo.h:4072:5: note: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4072 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
minerals.cpp:137:7: error: reference to 'count' is ambiguous
137 | ++count[type];
| ^~~~~
minerals.cpp:114:5: note: candidates are: 'int {anonymous}::count [86001]'
114 | int count[2 * MAX_N + 1];
| ^~~~~
/usr/include/c++/13/bits/stl_algo.h:4072:5: note: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4072 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
minerals.cpp:138:9: error: reference to 'count' is ambiguous
138 | if (count[type] == 1) {
| ^~~~~
minerals.cpp:114:5: note: candidates are: 'int {anonymous}::count [86001]'
114 | int count[2 * MAX_N + 1];
| ^~~~~
/usr/include/c++/13/bits/stl_algo.h:4072:5: note: 'template<class _IIter, class _Tp> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
4072 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~