0_0_17022461_18840.cpp:4:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
0_0_17022461_18840.cpp: In function 'bool check(int, int, int)':
0_0_17022461_18840.cpp:22:28: error: 'returnfalse' was not declared in this scope
if(x<0||y<0||x>=lx||y>=ly) returnfalse;
^
0_0_17022461_18840.cpp:23:21: error: 'returnfalse' was not declared in this scope
if(maze[x][y]=='X') returnfalse;
^
0_0_17022461_18840.cpp:24:41: error: 'returnfalse' was not declared in this scope
if(ABS(x-gh[0].x)+ABS(y-gh[0].y)<=d<<1) returnfalse;
^
0_0_17022461_18840.cpp:25:41: error: 'returnfalse' was not declared in this scope
if(ABS(x-gh[1].x)+ABS(y-gh[1].y)<=d<<1) returnfalse;
^
0_0_17022461_18840.cpp:26:1: error: 'returntrue' was not declared in this scope
returntrue;
^
0_0_17022461_18840.cpp: At global scope:
0_0_17022461_18840.cpp:32:1: error: 'queue' does not name a type
queue<S> que[2];
^
0_0_17022461_18840.cpp: In function 'void bfs(int)':
0_0_17022461_18840.cpp:35:10: error: 'que' was not declared in this scope
int size=que[t].size();
^
0_0_17022461_18840.cpp: In function 'int dbfs()':
0_0_17022461_18840.cpp:55:8: error: 'que' was not declared in this scope
while(!que[0].empty()) que[0].pop();
^
0_0_17022461_18840.cpp:56:8: error: 'que' was not declared in this scope
while(!que[1].empty()) que[1].pop();
^
0_0_17022461_18840.cpp:58:5: error: 'que' was not declared in this scope
que[0].push(gs);
^
|