Problem exponentiate_ex
User P55D2K
Submission Time 2023-05-07 07:53:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:630:19: error: no match for ‘operator&’ (operand types are ‘bigint’ and ‘bigint’)
630 | if (b & one) { res = (res * a) % m; }
| ~ ^ ~~~
| | |
| | bigint
| bigint
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from exponentiate_ex.cpp:1:
/usr/include/c++/9/bits/ios_base.h:83:3: note: candidate: ‘constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)’
83 | operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
| ^~~~~~~~
/usr/include/c++/9/bits/ios_base.h:83:27: note: no known conversion for argument 1 from ‘bigint’ to ‘std::_Ios_Fmtflags’
83 | operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
|