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_17189682_19489.cpp:264:2: error: stray '#' in program
 }#include<algorithm>
  ^
0_0_17189682_19489.cpp:264:3: error: 'include' does not name a type
 }#include<algorithm>
   ^
0_0_17189682_19489.cpp:269:11: error: redefinition of 'const int INF'
 const int INF=0x3f3f3f3f;
           ^
0_0_17189682_19489.cpp:6:11: note: 'const int INF' previously defined here
 const int INF=0x3f3f3f3f;
           ^
0_0_17189682_19489.cpp:270:11: error: redefinition of 'const int maxn'
 const int maxn=100010;
           ^
0_0_17189682_19489.cpp:7:11: note: 'const int maxn' previously defined here
 const int maxn=100010;
           ^
0_0_17189682_19489.cpp:275:12: error: redefinition of 'int sz [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
            ^
0_0_17189682_19489.cpp:12:5: note: 'int sz [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
     ^
0_0_17189682_19489.cpp:275:22: error: redefinition of 'int dep [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
                      ^
0_0_17189682_19489.cpp:12:14: note: 'int dep [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
              ^
0_0_17189682_19489.cpp:275:31: error: redefinition of 'int fa [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
                               ^
0_0_17189682_19489.cpp:12:24: note: 'int fa [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
                        ^
0_0_17189682_19489.cpp:275:41: error: redefinition of 'int son [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
                                         ^
0_0_17189682_19489.cpp:12:33: note: 'int son [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
                                 ^
0_0_17189682_19489.cpp:275:50: error: redefinition of 'int id [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
                                                  ^
0_0_17189682_19489.cpp:12:43: note: 'int id [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
                                           ^
0_0_17189682_19489.cpp:275:60: error: redefinition of 'int top [100010]'
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn];
                                                            ^
0_0_17189682_19489.cpp:12:52: note: 'int top [100010]' previously declared here
 int sz[maxn],dep[maxn],fa[maxn],son[maxn],id[maxn],top[maxn],rd[maxn];
                                                    ^
0_0_17189682_19489.cpp:276:25: error: redefinition of 'int ans [100010]'
 int mv[maxn<<2],ans[maxn],leaf[maxn],cnt,ptr,col;
                         ^
0_0_17189682_19489.cpp:13:53: note: 'int ans [100010]' previously declared here
 int col[maxn<<2],num[maxn<<2],cnum[maxn],ccol[maxn],ans[maxn],cnt,ptr,ccl;
                                                     ^
0_0_17189682_19489.cpp:276:38: error: redefinition of 'int cnt'
 int mv[maxn<<2],ans[maxn],leaf[maxn],cnt,ptr,col;
                                      ^
0_0_17189682_19489.cpp:13:63: note: 'int cnt' previously declared here
 int col[maxn<<2],num[maxn<<2],cnum[maxn],ccol[maxn],ans[maxn],cnt,ptr,ccl;
                                                               ^
0_0_17189682_19489.cpp:276:42: error: redefinition of 'int ptr'
 int mv[maxn<<2],ans[maxn],leaf[maxn],cnt,ptr,col;
                                          ^
0_0_17189682_19489.cpp:13:67: note: 'int ptr' previously declared here
 int col[maxn<<2],num[maxn<<2],cnum[maxn],ccol[maxn],ans[maxn],cnt,ptr,ccl;
                                                                   ^
0_0_17189682_19489.cpp:276:46: error: conflicting declaration 'int col'
 int mv[maxn<<2],ans[maxn],leaf[maxn],cnt,ptr,col;
                                              ^
0_0_17189682_19489.cpp:13:5: note: previous declaration as 'int col [400040]'
 int col[maxn<<2],num[maxn<<2],cnum[maxn],ccol[maxn],ans[maxn],cnt,ptr,ccl;
     ^
0_0_17189682_19489.cpp:277:8: error: redefinition of 'struct node'
 struct node
        ^
0_0_17189682_19489.cpp:14:8: error: previous definition of 'struct node'
 struct node
        ^
0_0_17189682_19489.cpp:281:24: error: invalid type in declaration before ',' token
 } ed[(maxn<<1)+40*maxn],*head[maxn],*oh[maxn];
                        ^
0_0_17189682_19489.cpp:281:24: error: conflicting declaration 'int ed [4200420]'
0_0_17189682_19489.cpp:18:3: note: previous declaration as 'node ed [200020]'
 } ed[maxn<<1],*head[maxn];
   ^
0_0_17189682_19489.cpp:281:35: error: conflicting declaration 'int* head [100010]'
 } ed[(maxn<<1)+40*maxn],*head[maxn],*oh[maxn];
                                   ^
0_0_17189682_19489.cpp:18:16: note: previous declaration as 'node* head [100010]'
 } ed[maxn<<1],*head[maxn];
                ^
0_0_17189682_19489.cpp: In function 'void build(int, int, int)':
0_0_17189682_19489.cpp:288:6: error: redefinition of 'void build(int, int, int)'
 void build(int L,int R,int rt)
      ^
0_0_17189682_19489.cpp:33:6: note: 'void build(int, int, int)' previously defined here
 void build(int L,int R,int rt)
      ^
0_0_17189682_19489.cpp: In function 'int qu(int, int, int)':
0_0_17189682_19489.cpp:311:26: error: ambiguating new declaration of 'int qu(int, int, int)'
 int qu(int L,int R,int rt)
                          ^
0_0_17189682_19489.cpp:161:6: note: old declaration 'void qu(int, int, int)'
 void qu(int L,int R,int rt)
      ^
0_0_17189682_19489.cpp: In function 'void dfs(int)':
0_0_17189682_19489.cpp:326:6: error: redefinition of 'void dfs(int)'
 void dfs(int u)
      ^
0_0_17189682_19489.cpp:176:6: note: 'void dfs(int)' previously defined here
 void dfs(int u)
      ^
0_0_17189682_19489.cpp: In function 'void getid(int, int)':
0_0_17189682_19489.cpp:343:6: error: redefinition of 'void getid(int, int)'
 void getid(int u,int ft)
      ^
0_0_17189682_19489.cpp:193:6: note: 'void getid(int, int)' previously defined here
 void getid(int u,int ft)
      ^
0_0_17189682_19489.cpp: In function 'void init(int)':
0_0_17189682_19489.cpp:355:6: error: redefinition of 'void init(int)'
 void init(int rt)
      ^
0_0_17189682_19489.cpp:205:6: note: 'void init(int)' previously defined here
 void init(int rt)
      ^
0_0_17189682_19489.cpp: In function 'void uppath(int, int, int)':
0_0_17189682_19489.cpp:362:6: error: redefinition of 'void uppath(int, int, int)'
 void uppath(int u,int v,int d)
      ^
0_0_17189682_19489.cpp:212:6: note: 'void uppath(int, int, int)' previously defined here
 void uppath(int u,int v,int d)
      ^
0_0_17189682_19489.cpp:369:25: error: no matching function for call to 'adde(int* [100010], int&, int&)'
         adde(oh,id[f1],d);
                         ^
0_0_17189682_19489.cpp:369:25: note: candidates are:
0_0_17189682_19489.cpp:27:6: note: void adde(int, int)
 void adde(int u,int v)
      ^
0_0_17189682_19489.cpp:27:6: note:   candidate expects 2 arguments, 3 provided
0_0_17189682_19489.cpp:282:6: note: void adde(node**, int, int)
 void adde(node *h[],int u,int v)
      ^
0_0_17189682_19489.cpp:282:6: note:   no known conversion for argument 1 from 'int* [100010]' to 'node**'
0_0_17189682_19489.cpp:370:27: error: no matching function for call to 'adde(int* [100010], int, int)'
         adde(oh,id[u]+1,-d);
                           ^
0_0_17189682_19489.cpp:370:27: note: candidates are:
0_0_17189682_19489.cpp:27:6: note: void adde(int, int)
 void adde(int u,int v)
      ^
0_0_17189682_19489.cpp:27:6: note:   candidate expects 2 arguments, 3 provided
0_0_17189682_19489.cpp:282:6: note: void adde(node**, int, int)
 void adde(node *h[],int u,int v)
      ^
0_0_17189682_19489.cpp:282:6: note:   no known conversion for argument 1 from 'int* [100010]' to 'node**'
0_0_17189682_19489.cpp:375:20: error: no matching function for call to 'adde(int* [100010], int&, int&)'
     adde(oh,id[u],d);
                    ^
0_0_17189682_19489.cpp:375:20: note: candidates are:
0_0_17189682_19489.cpp:27:6: note: void adde(int, int)
 void adde(int u,int v)
      ^
0_0_17189682_19489.cpp:27:6: note:   candidate expects 2 arguments, 3 provided
0_0_17189682_19489.cpp:282:6: note: void adde(node**, int, int)
 void adde(node *h[],int u,int v)
      ^
0_0_17189682_19489.cpp:282:6: note:   no known conversion for argument 1 from 'int* [100010]' to 'node**'
0_0_17189682_19489.cpp:376:23: error: no matching function for call to 'adde(int* [100010], int, int)'
     adde(oh,id[v]+1,-d);
                       ^
0_0_17189682_19489.cpp:376:23: note: candidates are:
0_0_17189682_19489.cpp:27:6: note: void adde(int, int)
 void adde(int u,int v)
      ^
0_0_17189682_19489.cpp:27:6: note:   candidate expects 2 arguments, 3 provided
0_0_17189682_19489.cpp:282:6: note: void adde(node**, int, int)
 void adde(node *h[],int u,int v)
      ^
0_0_17189682_19489.cpp:282:6: note:   no known conversion for argument 1 from 'int* [100010]' to 'node**'
0_0_17189682_19489.cpp: In function 'int main()':
0_0_17189682_19489.cpp:378:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17189682_19489.cpp:229:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17189682_19489.cpp:381:8: error: incompatible types in assignment


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-05 17:25:22, Gzip enabled