answer.code: In function ‘void solve()’:
answer.code:32:29: error: call of overloaded ‘div(i64&, long long int)’ is ambiguous
32 | auto [k1, p1] = std::div(x, 1LL << (B + 1));
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/cstdlib:79,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:42,
from answer.code:1:
/usr/include/stdlib.h:852:14: note: candidate: ‘div_t div(int, int)’
852 | extern div_t div (int __numer, int __denom)
| ^~~
/usr/include/c++/13/cstdlib:181:3: note: candidate: ‘ldiv_t std::div(long int, long int)’
181 | div(long __i, long __j) _GLIBCXX_NOTHROW { return ldiv(__i, __j); }
| ^~~
/usr/include/c++/13/cstdlib:217:3: note: candidate: ‘lldiv_t __gnu_cxx::div(long long int, long long int)’
217 | div(long long __n, long long __d)
| ^~~
answer.code:33:29: error: call of overloaded ‘div(i64&, long long int)’ is ambiguous
33 | auto [k2, p2] = std::div(y, 1LL << (B + 1));
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/include/stdlib.h:852:14: note: candidate: ‘div_t div(int, int)’
852 | extern div_t div (int __numer, int __denom)
| ^~~
/usr/include/c++/13/cstdlib:181:3: note: candidate: ‘ldiv_t std::div(long int, long int)’
181 | div(long __i, long __j) _GLIBCXX_NOTHROW { return ldiv(__i, __j); }
| ^~~
/usr/include/c++/13/cstdlib:217:3: note: candidate: ‘lldiv_t __gnu_cxx::div(long long int, long long int)’
217 | div(long long __n, long long __d)
| ^~~