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_37942968_15852.cpp: In instantiation of 'T __lcm(T, T) [with T = long long int]':
0_0_37942968_15852.cpp:209:35:   required from here
0_0_37942968_15852.cpp:133:20: error: call of overloaded '__gcd(long long int&, long long int&)' is ambiguous
  T num = __gcd(a, b);
                    ^
0_0_37942968_15852.cpp:133:20: note: candidates are:
0_0_37942968_15852.cpp:127:3: note: T __gcd(T, T) [with T = long long int]
 T __gcd(T a, T b) {
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_37942968_15852.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1229:5: note: _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement) [with _EuclideanRingElement = long long int]
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^


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-28 21:33:36, Gzip enabled