0_0_17505943_30290.cpp: In function 'int BFS()':
0_0_17505943_30290.cpp:15:5: error: 'queue' was not declared in this scope
queue<node>q;
^
0_0_17505943_30290.cpp:15:15: error: expected primary-expression before '>' token
queue<node>q;
^
0_0_17505943_30290.cpp:15:16: error: 'q' was not declared in this scope
queue<node>q;
^
0_0_17505943_30290.cpp:17:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_17505943_30290.cpp:30:29: error: 'abs' was not declared in this scope
if(abs(now.x1-now.x2)==1 && now.y1==now.y2) return now.step;
^
0_0_17505943_30290.cpp:31:29: error: 'abs' was not declared in this scope
if(abs(now.y1-now.y2)==1 && now.x1==now.x2) return now.step;
^
0_0_17505943_30290.cpp: In function 'int main()':
0_0_17505943_30290.cpp:56:29: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&m)!=-1)
^
0_0_17505943_30290.cpp:68:41: error: 'printf' was not declared in this scope
if(ans==-1) printf("Bad Luck!\n");
^
0_0_17505943_30290.cpp:69:38: error: 'printf' was not declared in this scope
else printf("%d\n",ans);
^
|