amusementpark.cpp: In function 'int main()':
amusementpark.cpp:25:17: error: reference to 'popcount' is ambiguous
25 | popcount[i] = popcount[i >> 1] + (i & 1);
| ^~~~~~~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:76,
from /usr/include/c++/13/string:51,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from amusementpark.cpp:2:
/usr/include/c++/13/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
426 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:8:5: note: 'int popcount [262144]'
8 | int popcount[1 << N];
| ^~~~~~~~
amusementpark.cpp:25:31: error: reference to 'popcount' is ambiguous
25 | popcount[i] = popcount[i >> 1] + (i & 1);
| ^~~~~~~~
/usr/include/c++/13/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
426 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:8:5: note: 'int popcount [262144]'
8 | int popcount[1 << N];
| ^~~~~~~~
amusementpark.cpp:26:27: error: reference to 'popcount' is ambiguous
26 | arg[i] = (popcount[i] % 2) * 2 - 1;
| ^~~~~~~~
/usr/include/c++/13/bit:426:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
426 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:8:5: note: 'int popcount [262144]'
8 | int popcount[1 << N];
| ^~~~~~~~