0_0_18547327_20202.cpp:99:11: error: redefinition of 'const int maxn'
const int maxn = 1e4+5;
^
0_0_18547327_20202.cpp:15:11: note: 'const int maxn' previously defined here
const int maxn = 50010;
^
0_0_18547327_20202.cpp:101:14: error: redefinition of 'int head [50010]'
int head[maxn],nxt[maxn*4],to[maxn*4],e;
^
0_0_18547327_20202.cpp:17:5: note: 'int head [50010]' previously declared here
int head[maxn],nxt[maxn],to[maxn],e;
^
0_0_18547327_20202.cpp:101:26: error: conflicting declaration 'int nxt [200040]'
int head[maxn],nxt[maxn*4],to[maxn*4],e;
^
0_0_18547327_20202.cpp:17:16: note: previous declaration as 'int nxt [50010]'
int head[maxn],nxt[maxn],to[maxn],e;
^
0_0_18547327_20202.cpp:101:37: error: conflicting declaration 'int to [200040]'
int head[maxn],nxt[maxn*4],to[maxn*4],e;
^
0_0_18547327_20202.cpp:17:26: note: previous declaration as 'int to [50010]'
int head[maxn],nxt[maxn],to[maxn],e;
^
0_0_18547327_20202.cpp:101:39: error: redefinition of 'int e'
int head[maxn],nxt[maxn*4],to[maxn*4],e;
^
0_0_18547327_20202.cpp:17:35: note: 'int e' previously declared here
int head[maxn],nxt[maxn],to[maxn],e;
^
0_0_18547327_20202.cpp:102:14: error: redefinition of 'double w [50010]'
double w[maxn],p[maxn],cost[maxn*4];
^
0_0_18547327_20202.cpp:18:8: note: 'double w [50010]' previously declared here
double w[maxn],p[maxn],cost[maxn];
^
0_0_18547327_20202.cpp:102:22: error: redefinition of 'double p [50010]'
double w[maxn],p[maxn],cost[maxn*4];
^
0_0_18547327_20202.cpp:18:16: note: 'double p [50010]' previously declared here
double w[maxn],p[maxn],cost[maxn];
^
0_0_18547327_20202.cpp:102:35: error: conflicting declaration 'double cost [200040]'
double w[maxn],p[maxn],cost[maxn*4];
^
0_0_18547327_20202.cpp:18:24: note: previous declaration as 'double cost [50010]'
double w[maxn],p[maxn],cost[maxn];
^
0_0_18547327_20202.cpp:103:11: error: redefinition of 'int a [50010]'
int a[maxn];
^
0_0_18547327_20202.cpp:19:5: note: 'int a [50010]' previously declared here
int a[maxn];
^
0_0_18547327_20202.cpp:104:14: error: redefinition of 'double b [50010]'
double b[maxn];
^
0_0_18547327_20202.cpp:20:8: note: 'double b [50010]' previously declared here
double b[maxn];
^
0_0_18547327_20202.cpp: In function 'void add(int, int, double)':
0_0_18547327_20202.cpp:106:6: error: redefinition of 'void add(int, int, double)'
void add(int u,int v,double t)
^
0_0_18547327_20202.cpp:22:6: note: 'void add(int, int, double)' previously defined here
void add(int u,int v,double t)
^
0_0_18547327_20202.cpp: In function 'void init(int)':
0_0_18547327_20202.cpp:110:6: error: redefinition of 'void init(int)'
void init(int n)
^
0_0_18547327_20202.cpp:26:6: note: 'void init(int)' previously defined here
void init(int n)
^
0_0_18547327_20202.cpp: At global scope:
0_0_18547327_20202.cpp:116:13: error: redefinition of 'int vis [50010]'
int vis[maxn];
^
0_0_18547327_20202.cpp:32:5: note: 'int vis [50010]' previously declared here
int vis[maxn];
^
0_0_18547327_20202.cpp:117:17: error: redefinition of 'double dist [50010]'
double dist[maxn];
^
0_0_18547327_20202.cpp:33:8: note: 'double dist [50010]' previously declared here
double dist[maxn];
^
0_0_18547327_20202.cpp: In function 'void SPFA(int)':
0_0_18547327_20202.cpp:118:6: error: redefinition of 'void SPFA(int)'
void SPFA(int s)
^
0_0_18547327_20202.cpp:34:6: note: 'void SPFA(int)' previously defined here
void SPFA(int s)
^
0_0_18547327_20202.cpp: In function 'int main()':
0_0_18547327_20202.cpp:142:5: error: redefinition of 'int main()'
int main()
^
0_0_18547327_20202.cpp:58:5: note: 'int main()' previously defined here
int main()
^
|