0_0_28056149_16279.cpp:120:4: error: stray '#' in program
} #include<iostream>
^
0_0_28056149_16279.cpp:120:5: error: 'include' does not name a type
} #include<iostream>
^
0_0_28056149_16279.cpp:126:5: error: redefinition of 'int n'
int n,m,head[100010];
^
0_0_28056149_16279.cpp:7:5: note: 'int n' previously declared here
int n,m,head[100010];
^
0_0_28056149_16279.cpp:126:7: error: redefinition of 'int m'
int n,m,head[100010];
^
0_0_28056149_16279.cpp:7:7: note: 'int m' previously declared here
int n,m,head[100010];
^
0_0_28056149_16279.cpp:126:20: error: redefinition of 'int head [100010]'
int n,m,head[100010];
^
0_0_28056149_16279.cpp:7:9: note: 'int head [100010]' previously declared here
int n,m,head[100010];
^
0_0_28056149_16279.cpp:127:13: error: redefinition of 'int d [100010]'
int d[100010];
^
0_0_28056149_16279.cpp:8:5: note: 'int d [100010]' previously declared here
int d[100010];
^
0_0_28056149_16279.cpp:128:5: error: redefinition of 'int e'
int e=0;
^
0_0_28056149_16279.cpp:9:5: note: 'int e' previously defined here
int e=0;
^
0_0_28056149_16279.cpp:129:15: error: redefinition of 'int vis [100010]'
int vis[100010];
^
0_0_28056149_16279.cpp:10:5: note: 'int vis [100010]' previously declared here
int vis[100010];
^
0_0_28056149_16279.cpp:131:8: error: redefinition of 'struct node'
struct node{
^
0_0_28056149_16279.cpp:12:8: error: previous definition of 'struct node'
struct node{
^
0_0_28056149_16279.cpp:133:14: error: invalid type in declaration before ';' token
}edge[200020];
^
0_0_28056149_16279.cpp:133:14: error: conflicting declaration 'int edge [200020]'
0_0_28056149_16279.cpp:14:2: note: previous declaration as 'node edge [200020]'
}edge[200020];
^
0_0_28056149_16279.cpp:135:8: error: redefinition of 'struct A'
struct A{
^
0_0_28056149_16279.cpp:16:8: error: previous definition of 'struct A'
struct A{
^
0_0_28056149_16279.cpp: In function 'void init()':
0_0_28056149_16279.cpp:143:6: error: redefinition of 'void init()'
void init(){
^
0_0_28056149_16279.cpp:24:6: note: 'void init()' previously defined here
void init(){
^
0_0_28056149_16279.cpp: In function 'void addedge(int, int, int)':
0_0_28056149_16279.cpp:150:6: error: redefinition of 'void addedge(int, int, int)'
void addedge(int u,int v,int w)
^
0_0_28056149_16279.cpp:31:6: note: 'void addedge(int, int, int)' previously defined here
void addedge(int u,int v,int w)
^
0_0_28056149_16279.cpp: In function 'void spfa(int)':
0_0_28056149_16279.cpp:158:6: error: redefinition of 'void spfa(int)'
void spfa(int s)
^
0_0_28056149_16279.cpp:39:6: note: 'void spfa(int)' previously defined here
void spfa(int s)
^
0_0_28056149_16279.cpp: In function 'int astar(int, int, int)':
0_0_28056149_16279.cpp:186:5: error: redefinition of 'int astar(int, int, int)'
int astar(int sta,int end,int k)
^
0_0_28056149_16279.cpp:67:5: note: 'int astar(int, int, int)' previously defined here
int astar(int sta,int end,int k)
^
0_0_28056149_16279.cpp: In function 'int main()':
0_0_28056149_16279.cpp:217:5: error: redefinition of 'int main()'
int main()
^
0_0_28056149_16279.cpp:98:5: note: 'int main()' previously defined here
int main()
^
|