Problem exponentiate_ex
User YH
Submission Time 2025-02-06 20:48:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:77:14: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘ll’ {aka ‘__int128’})
77 | cout << mod_exponentiate(A, B, M) << "\n";
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | ll {aka __int128}
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/iostream:39,
from exponentiate_ex.cpp:1:
/usr/include/c++/9/ostream:166:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]’
166 | operator<