0_0_20506577_23622.cpp:11:2: note: #pragma message:
#include<iostream>
#include<algorithm>
#include<memory.h>
#include<string>
#include<queue>
using namespace std;
int n,m;
const int MAXX=99999999;
char grid[202][202];
int vis[202][202];
")
^
0_0_20506577_23622.cpp:22:2: note: #pragma message:
int minx=MAXX;
int y[4]={-1,0,0,1};
int x[4]={0,-1,1,0};
void dfs(int i,int j,int t){
if(i<0||i>=n||j<0||j>=m)return ;
if(grid[i][j]=='#'||vis[i][j])return ;
if(grid[i][j]=='r'){
if(t<minx)minx=t;
}
vis[i][j]=1;
")
^
0_0_20506577_23622.cpp:33:2: note: #pragma message:
if(grid[i][j]=='x')t++;
for(int k=0;k<4;k++)
dfs(i+y[k],j+x[k],t+1);
vis[i][j]=0;
}
int main(){
ios::sync_with_stdio(0);
while(cin>>n>>m){
memset(vis,0,sizeof(vis));
")
^
0_0_20506577_23622.cpp:44:2: note: #pragma message:
int sy,sx;
minx=MAXX;
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cin>>grid[i][j];
if(grid[i][j]=='a'){
sy=i;sx=j;
}
}
}
")
^
0_0_20506577_23622.cpp:52:2: note: #pragma message:
dfs(sy,sx,0);
if(minx!=MAXX)
cout<<minx<<endl;
else cout<<"Poor ANGEL has to stay in the prison all his life."<<endl;
}
return 0;
}
")
^
0_0_20506577_23622.cpp:60:2: note: #pragma message:
dfs(sy,sx,0);
if(minx!=MAXX)
cout<<minx<<endl;
else cout<<"Poor ANGEL has to stay in the prison all his life."<<endl;
}
return 0;
}
")
^
GCC4.9.2/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/lib/../lib\libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x25): undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
|