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_33887245_10844.cpp:102:11: error: redefinition of 'const int N'
 const int N = 4e4 + 6, M = 1e9 + 7;
           ^
0_0_33887245_10844.cpp:23:11: note: 'const int N' previously defined here
 const int N = 4e4 + 6, M = 1e9 + 7;
           ^
0_0_33887245_10844.cpp:102:24: error: redefinition of 'const int M'
 const int N = 4e4 + 6, M = 1e9 + 7;
                        ^
0_0_33887245_10844.cpp:23:24: note: 'const int M' previously defined here
 const int N = 4e4 + 6, M = 1e9 + 7;
                        ^
0_0_33887245_10844.cpp:105:5: error: redefinition of 'int n'
 int n, m, fa[N], v[N], ans[N], dis[N];
     ^
0_0_33887245_10844.cpp:25:5: note: 'int n' previously declared here
 int n, m;
     ^
0_0_33887245_10844.cpp:105:8: error: redefinition of 'int m'
 int n, m, fa[N], v[N], ans[N], dis[N];
        ^
0_0_33887245_10844.cpp:25:8: note: 'int m' previously declared here
 int n, m;
        ^
0_0_33887245_10844.cpp:105:37: error: conflicting declaration 'int dis [40006]'
 int n, m, fa[N], v[N], ans[N], dis[N];
                                     ^
0_0_33887245_10844.cpp:27:4: note: previous declaration as 'll dis [40006]'
 ll dis[N], d[N], f[N][21], t;
    ^
0_0_33887245_10844.cpp:106:11: error: redefinition of 'int head [40006]'
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
           ^
0_0_33887245_10844.cpp:26:5: note: 'int head [40006]' previously declared here
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
     ^
0_0_33887245_10844.cpp:106:25: error: redefinition of 'int Next [80012]'
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                         ^
0_0_33887245_10844.cpp:26:14: note: 'int Next [80012]' previously declared here
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
              ^
0_0_33887245_10844.cpp:106:38: error: redefinition of 'int ver [80012]'
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                                      ^
0_0_33887245_10844.cpp:26:28: note: 'int ver [80012]' previously declared here
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                            ^
0_0_33887245_10844.cpp:106:52: error: redefinition of 'int edge [80012]'
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                                                    ^
0_0_33887245_10844.cpp:26:41: note: 'int edge [80012]' previously declared here
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                                         ^
0_0_33887245_10844.cpp:106:55: error: redefinition of 'int tot'
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                                                       ^
0_0_33887245_10844.cpp:26:55: note: 'int tot' previously declared here
 int head[N], Next[N << 1], ver[N << 1], edge[N << 1], tot;
                                                       ^
0_0_33887245_10844.cpp: In function 'void add(int, int, int)':
0_0_33887245_10844.cpp:107:6: error: redefinition of 'void add(int, int, int)'
 void add(int u, int v, int w) {
      ^
0_0_33887245_10844.cpp:28:6: note: 'void add(int, int, int)' previously defined here
 void add(int u, int v, int w) {
      ^
0_0_33887245_10844.cpp: In function 'int main()':
0_0_33887245_10844.cpp:136:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_33887245_10844.cpp:53:5: note: 'int main()' previously defined here
 int main() {
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-11 15:55:34, Gzip enabled