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_37943823_32719.cpp: In instantiation of 'T __lcm(T, T) [with T = int]':
0_0_37943823_32719.cpp:213:35:   required from here
0_0_37943823_32719.cpp:135:20: error: call of overloaded '__gcd(int&, int&)' is ambiguous
  T num = __gcd(a, b);
                    ^
0_0_37943823_32719.cpp:135:20: note: candidates are:
0_0_37943823_32719.cpp:129:3: note: T __gcd(T, T) [with T = 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_37943823_32719.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 = 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:31:52, Gzip enabled