0_0_24359371_32663.cpp: In function '__int128 gcd(__int128, __int128&)':
0_0_24359371_32663.cpp:24:49: error: invalid initialization of non-const reference of type '__int128&' from an rvalue of type '__int128'
return (_Right > _zero_ ? gcd(_Right, _Left % _Right) : _Left);
^
0_0_24359371_32663.cpp:23:10: note: in passing argument 2 of '__int128 gcd(__int128, __int128&)'
__int128 gcd(__int128 _Left, __int128& _Right) {
^
0_0_24359371_32663.cpp: In function '__int128 shrinkToLeast(const __int128&)':
0_0_24359371_32663.cpp:28:30: error: request for member 'value' in '_Val', which is of non-class type 'const __int128'
double value = atof(_Val.value().c_str());
^
0_0_24359371_32663.cpp:29:42: error: cannot convert 'std::string {aka std::basic_string<char>}' to '__int128' in initialization
__int128 r(to_string(ll(sqrt(value))));
^
0_0_24359371_32663.cpp:34:52: error: invalid cast from type 'std::string {aka std::basic_string<char>}' to type '__int128'
r = __int128(to_string(ll(pow(value, 1.0 / 3))));
^
0_0_24359371_32663.cpp: In function 'll calcLastExp(__int128&, const __int128&)':
0_0_24359371_32663.cpp:64:54: error: request for member 'value' in '(_Val / shrinkToLeast((*(const __int128*)_Val)))', which is of non-class type '__int128'
result *= atoll((_Val / shrinkToLeast(_Val)).value().c_str());
^
0_0_24359371_32663.cpp: In function 'int main()':
0_0_24359371_32663.cpp:86:22: error: cannot convert 'std::string {aka std::basic_string<char>}' to '__int128' in initialization
__int128 a(na), b(nb), c(gcd(a, b));
^
0_0_24359371_32663.cpp:86:29: error: cannot convert 'std::string {aka std::basic_string<char>}' to '__int128' in initialization
__int128 a(na), b(nb), c(gcd(a, b));
^
|