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_36612002_9658.cpp: In function 'int gcd(int, int)':
0_0_36612002_9658.cpp:100:12: error: redefinition of 'int gcd(int, int)'
 inline int gcd(int a, int b) { int r; while (b > 0) { r = a % b; a = b; b = r; }return a; }
            ^
0_0_36612002_9658.cpp:18:12: note: 'int gcd(int, int)' previously defined here
 inline int gcd(int a, int b) { int r; while (b > 0) { r = a % b; a = b; b = r; }return a; }
            ^
0_0_36612002_9658.cpp: At global scope:
0_0_36612002_9658.cpp:102:11: error: redefinition of 'const int maxn'
 const int maxn = 1e5 + 5;
           ^
0_0_36612002_9658.cpp:20:11: note: 'const int maxn' previously defined here
 const int maxn = 1e5 + 5;
           ^
0_0_36612002_9658.cpp:103:11: error: redefinition of 'const int INF'
 const int INF = 0x3f3f3f3f;
           ^
0_0_36612002_9658.cpp:21:11: note: 'const int INF' previously defined here
 const int INF = 0x3f3f3f3f;
           ^
0_0_36612002_9658.cpp:104:18: error: redefinition of 'bool IsPrime [100005]'
 bool IsPrime[maxn];
                  ^
0_0_36612002_9658.cpp:22:6: note: 'bool IsPrime [100005]' previously declared here
 bool IsPrime[maxn];
      ^
0_0_36612002_9658.cpp:105:4: error: redefinition of 'VI Prime'
 VI Prime;
    ^
0_0_36612002_9658.cpp:23:4: note: 'VI Prime' previously declared here
 VI Prime;
    ^
0_0_36612002_9658.cpp: In function 'void Init()':
0_0_36612002_9658.cpp:106:6: error: redefinition of 'void Init()'
 void Init()
      ^
0_0_36612002_9658.cpp:24:6: note: 'void Init()' previously defined here
 void Init()
      ^
0_0_36612002_9658.cpp: In function 'int Nim(int)':
0_0_36612002_9658.cpp:121:5: error: redefinition of 'int Nim(int)'
 int Nim(int x)
     ^
0_0_36612002_9658.cpp:39:5: note: 'int Nim(int)' previously defined here
 int Nim(int x)
     ^
0_0_36612002_9658.cpp: In function 'int main()':
0_0_36612002_9658.cpp:142:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_36612002_9658.cpp:60:5: note: 'int main()' previously defined here
 int main()
     ^


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-26 03:36:28, Gzip enabled