amusementpark.cpp: In function 'int main()':
amusementpark.cpp:26:17: error: reference to 'popcount' is ambiguous
26 | popcount[i] = popcount[i >> 1] + (i & 1);
| ^~~~~~~~
In file included from /usr/include/c++/11/bits/align.h:35,
from /usr/include/c++/11/memory:72,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
from amusementpark.cpp:1:
/usr/include/c++/11/bit:365:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
365 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:9:5: note: 'int popcount [262144]'
9 | int popcount[1 << N];
| ^~~~~~~~
amusementpark.cpp:26:31: error: reference to 'popcount' is ambiguous
26 | popcount[i] = popcount[i >> 1] + (i & 1);
| ^~~~~~~~
In file included from /usr/include/c++/11/bits/align.h:35,
from /usr/include/c++/11/memory:72,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
from amusementpark.cpp:1:
/usr/include/c++/11/bit:365:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
365 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:9:5: note: 'int popcount [262144]'
9 | int popcount[1 << N];
| ^~~~~~~~
amusementpark.cpp:27:17: error: reference to 'arg' is ambiguous
27 | arg[i] = (popcount[i] % 2) * 2 - 1;
| ^~~
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from amusementpark.cpp:1:
/usr/include/c++/11/complex:1852:5: note: candidates are: 'template<class _Tp> typename __gnu_cxx::__promote<_Tp>::__type std::arg(_Tp)'
1852 | arg(_Tp __x)
| ^~~
/usr/include/c++/11/complex:653:5: note: 'template<class _Tp> _Tp std::arg(const std::complex<_Tp>&)'
653 | arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); }
| ^~~
amusementpark.cpp:10:5: note: 'int arg [262144]'
10 | int arg[1 << N];
| ^~~
amusementpark.cpp:27:27: error: reference to 'popcount' is ambiguous
27 | arg[i] = (popcount[i] % 2) * 2 - 1;
| ^~~~~~~~
In file included from /usr/include/c++/11/bits/align.h:35,
from /usr/include/c++/11/memory:72,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:82,
from amusementpark.cpp:1:
/usr/include/c++/11/bit:365:5: note: candidates are: 'template<class _Tp> constexpr std::_If_is_unsigned_integer<_Tp, int> std::popcount(_Tp)'
365 | popcount(_Tp __x) noexcept
| ^~~~~~~~
amusementpark.cpp:9:5: note: 'int popcount [262144]'
9 | int popcount[1 << N];
| ^~~~~~~~
amusementpark.cpp:35:9: error: 'f' was not declared in this scope
35 | f[0] = 1;
| ^
amusementpark.cpp:38:61: error: reference to 'arg' is ambiguous
38 | if (indepset[j]) { dp[i] = (dp[i] + arg[j] * dp[i ^ j]) % M; }
| ^~~
In file included from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from amusementpark.cpp:1:
/usr/include/c++/11/complex:1852:5: note: candidates are: 'template<class _Tp> typename __gnu_cxx::__promote<_Tp>::__type std::arg(_Tp)'
1852 | arg(_Tp __x)
| ^~~
/usr/include/c++/11/complex:653:5: note: 'template<class _Tp> _Tp std::arg(const std::complex<_Tp>&)'
653 | arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); }
| ^~~
amusementpark.cpp:10:5: note: 'int arg [262144]'
10 | int arg[1 << N];
| ^~~