answer.code: In function ‘int main()’:
answer.code:41:33: error: call of overloaded ‘__lg(__int128&)’ is ambiguous
41 | __int128 cs=__lg(p)+1,ans=0,ans2=b-a,ans3=1152921504606846975ull;
| ~~~~^~~
In file included from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/ios:40,
from /usr/include/c++/11/istream:38,
from /usr/include/c++/11/sstream:38,
from /usr/include/c++/11/complex:45,
from /usr/include/c++/11/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
from answer.code:1:
/usr/include/c++/11/bits/stl_algobase.h:1506:3: note: candidate: ‘constexpr int std::__lg(int)’
1506 | __lg(int __n)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:1510:3: note: candidate: ‘constexpr unsigned int std::__lg(unsigned int)’
1510 | __lg(unsigned __n)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:1514:3: note: candidate: ‘constexpr long int std::__lg(long int)’
1514 | __lg(long __n)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:1518:3: note: candidate: ‘constexpr long unsigned int std::__lg(long unsigned int)’
1518 | __lg(unsigned long __n)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:1522:3: note: candidate: ‘constexpr long long int std::__lg(long long int)’
1522 | __lg(long long __n)
| ^~~~
/usr/include/c++/11/bits/stl_algobase.h:1526:3: note: candidate: ‘constexpr long long unsigned int std::__lg(long long unsigned int)’
1526 | __lg(unsigned long long __n)
| ^~~~
answer.code:45:38: error: ‘ans3’ was not declared in this scope
45 | if((a^b)<=p) ans3=1;
| ^~~~
answer.code:46:30: error: ‘ans3’ was not declared in this scope
46 | else ans3=2;
| ^~~~
answer.code:48:36: error: call of overloaded ‘pow(int, __int128&)’ is ambiguous
48 | if(p==(__int128)pow(2,cs)-1)
| ~~~^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:571,
from /usr/include/c++/11/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from answer.code:1:
/usr/include/c++/11/cmath:392:3: note: candidate: ‘constexpr long double std::pow(long double, long double)’
392 | pow(long double __x, long double __y)
| ^~~
/usr/include/c++/11/cmath:388:3: note: candidate: ‘constexpr float std::pow(float, float)’
388 | pow(float __x, float __y)
| ^~~
answer.code:50:58: error: call of overloaded ‘pow(int, __int128&)’ is ambiguous
50 | if(a-((a>>cs)<<cs)==(__int128)pow(2,cs)-1) ans=1,a+=1;
| ~~~^~~~~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:571,
from /usr/include/c++/11/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
| ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:41,
from answer.code:1:
/usr/include/c++/11/cmath:392:3: note: candidate: ‘constexpr long double std::pow(long double, long double)’
392 | pow(long double __x, long double __y)
| ^~~
/usr/include/c++/11/cmath:388:3: note: candidate: ‘constexpr float std::pow(float, float)’
388 | pow(float __x, float __y)
| ^~~
answer.code:50:68: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
50 | if(a-((a>>cs)<<cs)==(__int128)pow(2,cs)-1) ans=1,a+=1;
| ^~~
| abs
answer.code:51:64: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
51 | else if((1<<cs)-1-(a-((a>>cs)<<cs))>p) ans+=3,a=((a>>cs)+1<<cs);
| ^~~
| ...