0_0_33617530_15885\Main.java:2: 错误: 非法字符: '#'
#include"stdio.h"
^
0_0_33617530_15885\Main.java:2: 错误: 需要class, interface或enum
#include"stdio.h"
^
0_0_33617530_15885\Main.java:3: 错误: 非法字符: '#'
#include"string.h"
^
0_0_33617530_15885\Main.java:4: 错误: 非法字符: '#'
#include"queue"
^
0_0_33617530_15885\Main.java:7: 错误: 需要class, interface或enum
struct node
^
0_0_33617530_15885\Main.java:10: 错误: 需要class, interface或enum
int step;
^
0_0_33617530_15885\Main.java:11: 错误: 需要class, interface或enum
friend bool operator<(node n1,node n2)
^
0_0_33617530_15885\Main.java:14: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:16: 错误: 需要class, interface或enum
int dir[4][2]={0,1, 1,0, 0,-1, -1,0};
^
0_0_33617530_15885\Main.java:17: 错误: 需要class, interface或enum
int map[111][111];
^
0_0_33617530_15885\Main.java:18: 错误: 需要class, interface或enum
int flag[111][111];
^
0_0_33617530_15885\Main.java:19: 错误: 需要class, interface或enum
int blood[111][111];
^
0_0_33617530_15885\Main.java:20: 错误: 需要class, interface或enum
int n,m;
^
0_0_33617530_15885\Main.java:22: 错误: 需要class, interface或enum
int judge(int x,int y)
^
0_0_33617530_15885\Main.java:25: 错误: 需要class, interface或enum
if(map[x][y]==-1) return 1;
^
0_0_33617530_15885\Main.java:26: 错误: 需要class, interface或enum
return 0;
^
0_0_33617530_15885\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:31: 错误: 需要class, interface或enum
node cur,next;
^
0_0_33617530_15885\Main.java:32: 错误: 需要class, interface或enum
int i;
^
0_0_33617530_15885\Main.java:34: 错误: 需要class, interface或enum
cur.x=0;
^
0_0_33617530_15885\Main.java:35: 错误: 需要class, interface或enum
cur.y=0;
^
0_0_33617530_15885\Main.java:36: 错误: 需要class, interface或enum
cur.step=0;
^
0_0_33617530_15885\Main.java:37: 错误: 需要class, interface或enum
map[0][0]=-1;
^
0_0_33617530_15885\Main.java:39: 错误: 需要class, interface或enum
q.push(cur);
^
0_0_33617530_15885\Main.java:40: 错误: 需要class, interface或enum
while(!q.empty())
^
0_0_33617530_15885\Main.java:43: 错误: 需要class, interface或enum
q.pop();
^
0_0_33617530_15885\Main.java:44: 错误: 需要class, interface或enum
if(cur.x==n-1 && cur.y==m-1) return cur.step;
^
0_0_33617530_15885\Main.java:45: 错误: 需要class, interface或enum
for(i=0;i<4;i++)
^
0_0_33617530_15885\Main.java:45: 错误: 需要class, interface或enum
for(i=0;i<4;i++)
^
0_0_33617530_15885\Main.java:45: 错误: 需要class, interface或enum
for(i=0;i<4;i++)
^
0_0_33617530_15885\Main.java:48: 错误: 需要class, interface或enum
next.y=cur.y+dir[i][1];
^
0_0_33617530_15885\Main.java:50: 错误: 需要class, interface或enum
if(judge(next.x,next.y)) continue;
^
0_0_33617530_15885\Main.java:51: 错误: 需要class, interface或enum
next.step=cur.step+1+map[next.x][next.y];
^
0_0_33617530_15885\Main.java:52: 错误: 需要class, interface或enum
flag[next.x][next.y]=i+1;
^
0_0_33617530_15885\Main.java:53: 错误: 需要class, interface或enum
map[next.x][next.y]=-1;
^
0_0_33617530_15885\Main.java:54: 错误: 需要class, interface或enum
q.push(next);
^
0_0_33617530_15885\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:60: 错误: 需要class, interface或enum
void P(int x,int y)
^
0_0_33617530_15885\Main.java:63: 错误: 需要class, interface或enum
if(flag[x][y]==0) return ;
^
0_0_33617530_15885\Main.java:64: 错误: 需要class, interface或enum
next_x=x-dir[flag[x][y]-1][0];
^
0_0_33617530_15885\Main.java:65: 错误: 需要class, interface或enum
next_y=y-dir[flag[x][y]-1][1];
^
0_0_33617530_15885\Main.java:66: 错误: 需要class, interface或enum
P(next_x,next_y);
^
0_0_33617530_15885\Main.java:67: 错误: 需要class, interface或enum
printf("%ds:(%d,%d)->(%d,%d)\n",temp++,next_x,next_y,x,y);
^
0_0_33617530_15885\Main.java:69: 错误: 需要class, interface或enum
while(blood[x][y]--) printf("%ds:FIGHT AT (%d,%d)\n",temp++,x,y);
^
0_0_33617530_15885\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:75: 错误: 需要class, interface或enum
int i,l;
^
0_0_33617530_15885\Main.java:76: 错误: 需要class, interface或enum
int ans;
^
0_0_33617530_15885\Main.java:78: 错误: 需要class, interface或enum
while(scanf("%d%d",&n,&m)!=-1)
^
0_0_33617530_15885\Main.java:81: 错误: 需要class, interface或enum
memset(flag,0,sizeof(flag));
^
0_0_33617530_15885\Main.java:82: 错误: 需要class, interface或enum
memset(blood,0,sizeof(blood));
^
0_0_33617530_15885\Main.java:83: 错误: 需要class, interface或enum
for(i=0;i<n;i++)
^
0_0_33617530_15885\Main.java:83: 错误: 需要class, interface或enum
for(i=0;i<n;i++)
^
0_0_33617530_15885\Main.java:83: 错误: 需要class, interface或enum
for(i=0;i<n;i++)
^
0_0_33617530_15885\Main.java:86: 错误: 需要class, interface或enum
for(l=0;str[l];l++)
^
0_0_33617530_15885\Main.java:86: 错误: 需要class, interface或enum
for(l=0;str[l];l++)
^
0_0_33617530_15885\Main.java:86: 错误: 需要class, interface或enum
for(l=0;str[l];l++)
^
0_0_33617530_15885\Main.java:89: 错误: 需要class, interface或enum
else if(str[l]=='X')map[i][l]=-1;
^
0_0_33617530_15885\Main.java:90: 错误: 需要class, interface或enum
else map[i][l]=blood[i][l]=str[l]-'0';
^
0_0_33617530_15885\Main.java:91: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:95: 错误: 需要class, interface或enum
if(ans==-1) printf("God please help our poor hero.\n");
^
0_0_33617530_15885\Main.java:96: 错误: 需要class, interface或enum
else
^
0_0_33617530_15885\Main.java:100: 错误: 需要class, interface或enum
temp=1;
^
0_0_33617530_15885\Main.java:101: 错误: 需要class, interface或enum
P(n-1,m-1);
^
0_0_33617530_15885\Main.java:102: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:104: 错误: 需要class, interface或enum
}
^
0_0_33617530_15885\Main.java:106: 错误: 需要class, interface或enum
}
^
67 个错误
|