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_38425965_14067.cpp: In function 'll gcd(ll, ll)':
0_0_38425965_14067.cpp:28:4: error: redefinition of 'll gcd(ll, ll)'
 ll gcd(ll a,ll b){return b==0?a:gcd(b,a%b);}
    ^
0_0_38425965_14067.cpp:11:5: note: 'int gcd(int, int)' previously defined here
 int gcd(int a,int b){return b==0?a:gcd(b,a%b);}
     ^
0_0_38425965_14067.cpp: In function 'll lcm(ll, ll)':
0_0_38425965_14067.cpp:29:4: error: redefinition of 'll lcm(ll, ll)'
 ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
    ^
0_0_38425965_14067.cpp:12:5: note: 'int lcm(int, int)' previously defined here
 int lcm(int a,int b) {return a*b/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-17 12:47:54, Gzip enabled