0_0_36274417_11001.cpp:9:7: error: 'maxn' does not name a type
const maxn=205;
^
0_0_36274417_11001.cpp:10:11: error: 'maxn' was not declared in this scope
char grid[maxn][maxn];
^
0_0_36274417_11001.cpp:10:17: error: 'maxn' was not declared in this scope
char grid[maxn][maxn];
^
0_0_36274417_11001.cpp: In function 'void bfs(int, int)':
0_0_36274417_11001.cpp:25:8: error: 'class std::queue<node>' has no member named 'top'
f1=q.top();
^
0_0_36274417_11001.cpp:27:6: error: 'gird' was not declared in this scope
if(gird[f1.x][f1.y]=='r')
^
0_0_36274417_11001.cpp:28:26: error: expected primary-expression before 'return'
printf("%d\n",f1.ans),return 0;
^
0_0_36274417_11001.cpp:32:50: error: 'grid' was not declared in this scope
if(f2.x>=0&&f2.y<n&&f2.y<m&&!vis[f2.x][f2.y]&&grid[f2.x][f2.y]!='#'){
^
0_0_36274417_11001.cpp:34:8: error: 'gird' was not declared in this scope
if(gird[f2.x][f2.y]=='x') f2.ans+=2;
^
0_0_36274417_11001.cpp: In function 'int main()':
0_0_36274417_11001.cpp:48:17: error: 'grid' was not declared in this scope
scanf("%c",&grid[i][j]);
^
|