/in/foo.cc:79:1: error: 'Copy' does not name a type
Copy
^~~~
/in/foo.cc:82:11: error: redefinition of 'const int N'
const int N=510,M=5500;
^
/in/foo.cc:3:11: note: 'const int N' previously defined here
const int N=510,M=5500;
^
/in/foo.cc:82:17: error: redefinition of 'const int M'
const int N=510,M=5500;
^
/in/foo.cc:3:17: note: 'const int M' previously defined here
const int N=510,M=5500;
^
/in/foo.cc:83:5: error: redefinition of 'int n'
int n,m1,m2;
^
/in/foo.cc:4:5: note: 'int n' previously declared here
int n,m1,m2;
^
/in/foo.cc:83:7: error: redefinition of 'int m1'
int n,m1,m2;
^~
/in/foo.cc:4:7: note: 'int m1' previously declared here
int n,m1,m2;
^~
/in/foo.cc:83:10: error: redefinition of 'int m2'
int n,m1,m2;
^~
/in/foo.cc:4:10: note: 'int m2' previously declared here
int n,m1,m2;
^~
/in/foo.cc:84:8: error: redefinition of 'int h [510]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:5: note: 'int h [510]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:84:13: error: redefinition of 'int e [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:10: note: 'int e [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:84:19: error: redefinition of 'int ne [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:15: note: 'int ne [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^~
/in/foo.cc:84:24: error: redefinition of 'int w [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:21: note: 'int w [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:84:26: error: redefinition of 'int idx'
int h[N],e[M],ne[M],w[M],idx;
^~~
/in/foo.cc:5:26: note: 'int idx' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^~~
/in/foo.cc:85:10: error: redefinition of 'int cnt [510]'
int cnt[N],dist[N];
^
/in/foo.cc:6:5: note: 'int cnt [510]' previously declared here
int cnt[N],dist[N];
^~~
/in/foo.cc:85:18: error: redefinition of 'int dist [510]'
int cnt[N],dist[N];
^
/in/foo.cc:6:12: note: 'int dist [510]' previously declared here
int cnt[N],dist[N];
^~~~
/in/foo.cc:86:10: error: redefinition of 'bool st [510]'
bool st[N];
^
/in/foo.cc:7:6: note: 'bool st [510]' previously declared here
bool st[N];
^~
/in/foo.cc: In function 'void add(int, int, int)':
/in/foo.cc:87:6: error: redefinition of 'void add(int, int, int)'
void add(int a,int b,int c)
^~~
/in/foo.cc:8:6: note: 'void add(int, int, int)' previously defined here
void add(int a,int b,int c)
^~~
/in/foo.cc: In function 'bool spfa()':
/in/foo.cc:94:6: error: redefinition of 'bool spfa()'
bool spfa()
^~~~
/in/foo.cc:15:6: note: 'bool spfa()' previously defined here
bool spfa()
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:129:5: error: redefinition of 'int main()'
int main()
^~~~
/in/foo.cc:50:5: note: 'int main()' previously defined here
int main()
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:158:1: error: 'Copy' does not name a type
Copy
^~~~
/in/foo.cc:161:11: error: redefinition of 'const int N'
const int N=510,M=5500;
^
/in/foo.cc:3:11: note: 'const int N' previously defined here
const int N=510,M=5500;
^
/in/foo.cc:161:17: error: redefinition of 'const int M'
const int N=510,M=5500;
^
/in/foo.cc:3:17: note: 'const int M' previously defined here
const int N=510,M=5500;
^
/in/foo.cc:162:5: error: redefinition of 'int n'
int n,m1,m2;
^
/in/foo.cc:4:5: note: 'int n' previously declared here
int n,m1,m2;
^
/in/foo.cc:162:7: error: redefinition of 'int m1'
int n,m1,m2;
^~
/in/foo.cc:4:7: note: 'int m1' previously declared here
int n,m1,m2;
^~
/in/foo.cc:162:10: error: redefinition of 'int m2'
int n,m1,m2;
^~
/in/foo.cc:4:10: note: 'int m2' previously declared here
int n,m1,m2;
^~
/in/foo.cc:163:8: error: redefinition of 'int h [510]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:5: note: 'int h [510]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:163:13: error: redefinition of 'int e [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:10: note: 'int e [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:163:19: error: redefinition of 'int ne [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:15: note: 'int ne [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^~
/in/foo.cc:163:24: error: redefinition of 'int w [5500]'
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:5:21: note: 'int w [5500]' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^
/in/foo.cc:163:26: error: redefinition of 'int idx'
int h[N],e[M],ne[M],w[M],idx;
^~~
/in/foo.cc:5:26: note: 'int idx' previously declared here
int h[N],e[M],ne[M],w[M],idx;
^~~
/in/foo.cc:164:10: error: redefinition of 'int cnt [510]'
int cnt[N],dist[N];
^
/in/foo.cc:6:5: note: 'int cnt [510]' previously declared here
int cnt[N],dist[N];
^~~
/in/foo.cc:164:18: error: redefinition of 'int dist [510]'
int cnt[N],dist[N];
^
/in/foo.cc:6:12: note: 'int dist [510]' previously declared here
int cnt[N],dist[N];
^~~~
/in/foo.cc:165:10: error: redefinition of 'bool st [510]'
bool st[N];
^
/in/foo.cc:7:6: note: 'bool st [510]' previously declared here
bool st[N];
^~
/in/foo.cc: In function 'void add(int, int, int)':
/in/foo.cc:166:6: error: redefinition of 'void add(int, int, int)'
void add(int a,int b,int c)
^~~
/in/foo.cc:8:6: note: 'void add(int, int, int)' previously defined here
void add(int a,int b,int c)
^~~
/in/foo.cc: In function 'bool spfa()':
/in/foo.cc:173:6: error: redefinition of 'bool spfa()'
bool spfa()
^~~~
/in/foo.cc:15:6: note: 'bool spfa()' previously defined here
bool spfa()
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:208:5: error: redefinition of 'int main()'
int main()
^~~~
/in/foo.cc:50:5: note: 'int main()' previously defined here
int main()
^~~~