Problem guards_ex
User PlayVoltz
Submission Time 2023-10-15 11:30:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guards_ex.cpp: In function ‘int32_t main()’:
guards_ex.cpp:13:38: error: call of overloaded ‘to_string(__int128)’ is ambiguous
13 | string s = to_string((__int128)sum*n);
| ^
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 guards_ex.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)
| ^~~~~~~~~
/usr/include