Problem mathexam
User bribritt
Submission Time 2024-01-19 15:22:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathexam.cpp: In function ‘int main()’:
mathexam.cpp:36:41: error: call of overloaded ‘to_string(__int128)’ is ambiguous
36 | string hi = to_string(ans%100); if(hi.size()==1) hi='0'+hi;
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from mathexam.cpp:1:
/usr/include/c++/9/bits/basic_string.h:6549:3: note: candidate: ‘std::string std::__cxx11::to_string(int)’
6549 | to_string(int __val)
|