hack.cpp: In function 'int hack()':
hack.cpp:29:14: error: reference to 'divides' is ambiguous
29 | if (!divides((long long)p)) continue;
| ^~~~~~~
In file included from /usr/include/c++/13/string:49,
from /usr/include/c++/13/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
from hack.cpp:1:
/usr/include/c++/13/bits/stl_function.h:169:12: note: candidates are: 'template<class _Tp> struct std::divides'
169 | struct divides;
| ^~~~~~~
hack.cpp:6:6: note: 'bool divides(long long int)'
6 | bool divides(long long d) {
| ^~~~~~~
hack.cpp:33:51: error: reference to 'divides' is ambiguous
33 | while ((long long)pk * p <= 500000 / n && divides(pk * p))
| ^~~~~~~
/usr/include/c++/13/bits/stl_function.h:169:12: note: candidates are: 'template<class _Tp> struct std::divides'
169 | struct divides;
| ^~~~~~~
hack.cpp:6:6: note: 'bool divides(long long int)'
6 | bool divides(long long d) {
| ^~~~~~~
hack.cpp:53:17: error: reference to 'divides' is ambiguous
53 | if (divides(primes[mid])) hi = mid;
| ^~~~~~~
/usr/include/c++/13/bits/stl_function.h:169:12: note: candidates are: 'template<class _Tp> struct std::divides'
169 | struct divides;
| ^~~~~~~
hack.cpp:6:6: note: 'bool divides(long long int)'
6 | bool divides(long long d) {
| ^~~~~~~