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_37841577_15677.cpp:128:11: error: redefinition of 'const int MAXN'
 const int MAXN = 50005;
           ^
0_0_37841577_15677.cpp:9:11: note: 'const int MAXN' previously defined here
 const int MAXN = 50005;
           ^
0_0_37841577_15677.cpp:130:8: error: redefinition of 'struct fio'
 struct fio{ 
        ^
0_0_37841577_15677.cpp:11:8: error: previous definition of 'struct fio'
 struct fio{ 
        ^
0_0_37841577_15677.cpp:175:4: error: invalid type in declaration before ';' token
 }io;
    ^
0_0_37841577_15677.cpp:175:4: error: conflicting declaration 'int io'
0_0_37841577_15677.cpp:56:2: note: previous declaration as 'fio io'
 }io;
  ^
0_0_37841577_15677.cpp:177:5: error: redefinition of 'int n'
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
     ^
0_0_37841577_15677.cpp:58:5: note: 'int n' previously declared here
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
     ^
0_0_37841577_15677.cpp:177:14: error: redefinition of 'int p [50005]'
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
              ^
0_0_37841577_15677.cpp:58:8: note: 'int p [50005]' previously declared here
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
        ^
0_0_37841577_15677.cpp:177:25: error: redefinition of 'int pos [50005]'
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
                         ^
0_0_37841577_15677.cpp:58:17: note: 'int pos [50005]' previously declared here
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
                 ^
0_0_37841577_15677.cpp:177:36: error: redefinition of 'int ufs [50005]'
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
                                    ^
0_0_37841577_15677.cpp:58:28: note: 'int ufs [50005]' previously declared here
 int n, p[MAXN], pos[MAXN], ufs[MAXN];
                            ^
0_0_37841577_15677.cpp: In function 'int getf(int)':
0_0_37841577_15677.cpp:179:5: error: redefinition of 'int getf(int)'
 int getf(int x) {
     ^
0_0_37841577_15677.cpp:60:5: note: 'int getf(int)' previously defined here
 int getf(int x) {
     ^
0_0_37841577_15677.cpp: At global scope:
0_0_37841577_15677.cpp:183:8: error: redefinition of 'struct Edge'
 struct Edge {
        ^
0_0_37841577_15677.cpp:64:8: error: previous definition of 'struct Edge'
 struct Edge {
        ^
0_0_37841577_15677.cpp:185:16: error: invalid type in declaration before ';' token
 } e[MAXN * 460];
                ^
0_0_37841577_15677.cpp:185:16: error: conflicting declaration 'int e [23002300]'
0_0_37841577_15677.cpp:66:3: note: previous declaration as 'Edge e [23002300]'
 } e[MAXN * 460];
   ^
0_0_37841577_15677.cpp:186:15: error: redefinition of 'int first [50005]'
 int first[MAXN], eCnt;
               ^
0_0_37841577_15677.cpp:67:5: note: 'int first [50005]' previously declared here
 int first[MAXN], eCnt;
     ^
0_0_37841577_15677.cpp:186:18: error: redefinition of 'int eCnt'
 int first[MAXN], eCnt;
                  ^
0_0_37841577_15677.cpp:67:18: note: 'int eCnt' previously declared here
 int first[MAXN], eCnt;
                  ^
0_0_37841577_15677.cpp: In function 'void AddEdge(int, int, int)':
0_0_37841577_15677.cpp:188:13: error: redefinition of 'void AddEdge(int, int, int)'
 inline void AddEdge(int w, int u, int v) {
             ^
0_0_37841577_15677.cpp:69:13: note: 'void AddEdge(int, int, int)' previously defined here
 inline void AddEdge(int w, int u, int v) {
             ^
0_0_37841577_15677.cpp: In function 'void solve()':
0_0_37841577_15677.cpp:195:6: error: redefinition of 'void solve()'
 void solve() {
      ^
0_0_37841577_15677.cpp:76:6: note: 'void solve()' previously defined here
 void solve() {
      ^
0_0_37841577_15677.cpp: In function 'int main()':
0_0_37841577_15677.cpp:232:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_37841577_15677.cpp:113: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-12-02 07:08:12, Gzip enabled