minerals.cpp: In function 'int Query(int)':
minerals.cpp:142:7: error: reference to 'count' is ambiguous
142 | --count[type];
| ^~~~~
minerals.cpp:125:5: note: candidates are: 'int {anonymous}::count [86001]'
125 | 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:143:9: error: reference to 'count' is ambiguous
143 | if (count[type] == 0) {
| ^~~~~
minerals.cpp:125:5: note: candidates are: 'int {anonymous}::count [86001]'
125 | 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:148:7: error: reference to 'count' is ambiguous
148 | ++count[type];
| ^~~~~
minerals.cpp:125:5: note: candidates are: 'int {anonymous}::count [86001]'
125 | 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:149:9: error: reference to 'count' is ambiguous
149 | if (count[type] == 1) {
| ^~~~~
minerals.cpp:125:5: note: candidates are: 'int {anonymous}::count [86001]'
125 | 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)
| ^~~~~