F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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));
                             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 14:48:52, Gzip enabled