0_0_24463729_19587.cpp:110:5: error: redefinition of 'int n'
int n;
^
0_0_24463729_19587.cpp:8:5: note: 'int n' previously declared here
int n,ok,p1,p2,p3;
^
0_0_24463729_19587.cpp:111:5: error: redefinition of 'int p1'
int p1,p2,p3;
^
0_0_24463729_19587.cpp:8:10: note: 'int p1' previously declared here
int n,ok,p1,p2,p3;
^
0_0_24463729_19587.cpp:111:8: error: redefinition of 'int p2'
int p1,p2,p3;
^
0_0_24463729_19587.cpp:8:13: note: 'int p2' previously declared here
int n,ok,p1,p2,p3;
^
0_0_24463729_19587.cpp:111:11: error: redefinition of 'int p3'
int p1,p2,p3;
^
0_0_24463729_19587.cpp:8:16: note: 'int p3' previously declared here
int n,ok,p1,p2,p3;
^
0_0_24463729_19587.cpp:112:5: error: conflicting declaration 'int ans'
int ans;
^
0_0_24463729_19587.cpp:9:5: note: previous declaration as 'int ans [51][51][51]'
int ans[51][51][51];
^
0_0_24463729_19587.cpp: In function 'void bfs()':
0_0_24463729_19587.cpp:113:6: error: redefinition of 'void bfs()'
void bfs()
^
0_0_24463729_19587.cpp:16:6: note: 'void bfs()' previously defined here
void bfs()
^
0_0_24463729_19587.cpp:128:20: error: incompatible types in assignment of 'int' to 'int [51][51][51]'
ans=a;
^
0_0_24463729_19587.cpp: In function 'int main(int, const char**)':
0_0_24463729_19587.cpp:169:38: error: conflicting declaration of C function 'int main(int, const char**)'
int main(int argc, char const *argv[])
^
0_0_24463729_19587.cpp:74:5: note: previous declaration 'int main()'
int main()
^
0_0_24463729_19587.cpp:182:11: error: incompatible types in assignment of 'int' to 'int [51][51][51]'
ans=0;
^
0_0_24463729_19587.cpp:185:38: error: invalid types 'int [55][55][55][int [51][51][51]]' for array subscript
if(ans) printf("%d\n",step[ans][ans][ans]);
^
|