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_33686198_568.cpp:94:11: error: redefinition of 'const long long int maxn'
 const int maxn = 5e5+10;
           ^
0_0_33686198_568.cpp:6:11: note: 'const long long int maxn' previously defined here
 const int maxn = 5e5+10;
           ^
0_0_33686198_568.cpp:95:14: error: redefinition of 'long long int head [500010]'
 int head[maxn],cnt,n,k,ans;
              ^
0_0_33686198_568.cpp:7:5: note: 'long long int head [500010]' previously declared here
 int head[maxn],cnt,n,k,ans;
     ^
0_0_33686198_568.cpp:95:16: error: redefinition of 'long long int cnt'
 int head[maxn],cnt,n,k,ans;
                ^
0_0_33686198_568.cpp:7:16: note: 'long long int cnt' previously declared here
 int head[maxn],cnt,n,k,ans;
                ^
0_0_33686198_568.cpp:95:20: error: redefinition of 'long long int n'
 int head[maxn],cnt,n,k,ans;
                    ^
0_0_33686198_568.cpp:7:20: note: 'long long int n' previously declared here
 int head[maxn],cnt,n,k,ans;
                    ^
0_0_33686198_568.cpp:95:22: error: redefinition of 'long long int k'
 int head[maxn],cnt,n,k,ans;
                      ^
0_0_33686198_568.cpp:7:22: note: 'long long int k' previously declared here
 int head[maxn],cnt,n,k,ans;
                      ^
0_0_33686198_568.cpp:95:24: error: redefinition of 'long long int ans'
 int head[maxn],cnt,n,k,ans;
                        ^
0_0_33686198_568.cpp:7:24: note: 'long long int ans' previously declared here
 int head[maxn],cnt,n,k,ans;
                        ^
0_0_33686198_568.cpp:96:15: error: redefinition of 'long long int dp [500010][3]'
 int dp[maxn][3]; // 0正常, 1去max  2不取父亲
               ^
0_0_33686198_568.cpp:8:5: note: 'long long int dp [500010][3]' previously declared here
 int dp[maxn][3]; // 0正常, 1去max  2不取父亲
     ^
0_0_33686198_568.cpp:97:8: error: redefinition of 'struct node'
 struct node {
        ^
0_0_33686198_568.cpp:9:8: error: previous definition of 'struct node'
 struct node {
        ^
0_0_33686198_568.cpp:99:9: error: invalid type in declaration before ';' token
 }e[maxn];
         ^
0_0_33686198_568.cpp:99:9: error: conflicting declaration 'int e [500010]'
0_0_33686198_568.cpp:11:2: note: previous declaration as 'node e [500010]'
 }e[maxn];
  ^
0_0_33686198_568.cpp:100:8: error: redefinition of 'struct nod'
 struct nod {
        ^
0_0_33686198_568.cpp:12:8: error: previous definition of 'struct nod'
 struct nod {
        ^
0_0_33686198_568.cpp:102:3: error: invalid type in declaration before ';' token
 }t;
   ^
0_0_33686198_568.cpp:102:3: error: conflicting declaration 'int t'
0_0_33686198_568.cpp:14:2: note: previous declaration as 'nod t'
 }t;
  ^
0_0_33686198_568.cpp: In function 'long long int rule(nod, nod)':
0_0_33686198_568.cpp:104:5: error: redefinition of 'long long int rule(nod, nod)'
 int rule( nod a, nod b ) { return a.val>b.val; }
     ^
0_0_33686198_568.cpp:16:5: note: 'long long int rule(nod, nod)' previously defined here
 int rule( nod a, nod b ) { return a.val>b.val; }
     ^
0_0_33686198_568.cpp: In function 'void addage(long long int, long long int, long long int)':
0_0_33686198_568.cpp:106:6: error: redefinition of 'void addage(long long int, long long int, long long int)'
 void addage( int u, int v, int w )
      ^
0_0_33686198_568.cpp:18:6: note: 'void addage(long long int, long long int, long long int)' previously defined here
 void addage( int u, int v, int w )
      ^
0_0_33686198_568.cpp: In function 'void dfs(long long int, long long int)':
0_0_33686198_568.cpp:114:6: error: redefinition of 'void dfs(long long int, long long int)'
 void dfs( int u, int f )
      ^
0_0_33686198_568.cpp:26:6: note: 'void dfs(long long int, long long int)' previously defined here
 void dfs( int u, int f )
      ^
0_0_33686198_568.cpp: In function 'int main()':
0_0_33686198_568.cpp:154:8: error: redefinition of 'int main()'
 signed main()
        ^
0_0_33686198_568.cpp:66:8: note: 'int main()' previously defined here
 signed 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 16:35:58, Gzip enabled