0_0_38286809_14137\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_38286809_14137\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
^
0_0_38286809_14137\Main.java:2: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_38286809_14137\Main.java:3: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_38286809_14137\Main.java:4: 错误: 非法字符: '#'
#include<cstring>
^
0_0_38286809_14137\Main.java:5: 错误: 非法字符: '#'
#include<cmath>
^
0_0_38286809_14137\Main.java:6: 错误: 非法字符: '#'
#include<string>
^
0_0_38286809_14137\Main.java:7: 错误: 非法字符: '#'
#include<cstdlib>
^
0_0_38286809_14137\Main.java:8: 错误: 非法字符: '#'
#include<iomanip>
^
0_0_38286809_14137\Main.java:9: 错误: 非法字符: '#'
#include<vector>
^
0_0_38286809_14137\Main.java:10: 错误: 非法字符: '#'
#include<list>
^
0_0_38286809_14137\Main.java:11: 错误: 非法字符: '#'
#include<map>
^
0_0_38286809_14137\Main.java:12: 错误: 非法字符: '#'
#include<queue>
^
0_0_38286809_14137\Main.java:13: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_38286809_14137\Main.java:15: 错误: 需要class, interface或enum
char Map[105] [105];
^
0_0_38286809_14137\Main.java:16: 错误: 需要class, interface或enum
int map2[105] [105]; //用来标志已经走过的路
^
0_0_38286809_14137\Main.java:17: 错误: 需要class, interface或enum
int dir[4][2]={{0,1},{1,0},{0,-1},{-1,0}};
^
0_0_38286809_14137\Main.java:18: 错误: 需要class, interface或enum
int n,m;
^
0_0_38286809_14137\Main.java:19: 错误: 需要class, interface或enum
struct node
^
0_0_38286809_14137\Main.java:22: 错误: 需要class, interface或enum
int steps;
^
0_0_38286809_14137\Main.java:23: 错误: 需要class, interface或enum
int x,y;
^
0_0_38286809_14137\Main.java:24: 错误: 需要class, interface或enum
};
^
0_0_38286809_14137\Main.java:25: 错误: 需要class, interface或enum
void bfs()
^
0_0_38286809_14137\Main.java:28: 错误: 需要class, interface或enum
node s;
^
0_0_38286809_14137\Main.java:29: 错误: 需要class, interface或enum
s.steps = 0;
^
0_0_38286809_14137\Main.java:30: 错误: 需要class, interface或enum
s.x = 0;
^
0_0_38286809_14137\Main.java:31: 错误: 需要class, interface或enum
s.y = 0;
^
0_0_38286809_14137\Main.java:32: 错误: 需要class, interface或enum
q.push(s);
^
0_0_38286809_14137\Main.java:33: 错误: 需要class, interface或enum
while(!q.empty())
^
0_0_38286809_14137\Main.java:36: 错误: 需要class, interface或enum
q.pop();
^
0_0_38286809_14137\Main.java:37: 错误: 需要class, interface或enum
int x1 =s1.x;
^
0_0_38286809_14137\Main.java:38: 错误: 需要class, interface或enum
int y1= s1.y;
^
0_0_38286809_14137\Main.java:40: 错误: 需要class, interface或enum
if(x1==m-1&&y1==n-1&&(Map[y1][x1]=='.'||Map[y1][x1]=='0'))
^
0_0_38286809_14137\Main.java:43: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:43: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:43: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:46: 错误: 需要class, interface或enum
int cnt = s1.s[i][0];
^
0_0_38286809_14137\Main.java:47: 错误: 需要class, interface或enum
if(cnt == 2)
^
0_0_38286809_14137\Main.java:50: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:54: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:58: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:63: 错误: 需要class, interface或enum
s2.x = x1;
^
0_0_38286809_14137\Main.java:64: 错误: 需要class, interface或enum
s2.y = y1;
^
0_0_38286809_14137\Main.java:65: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:65: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:65: 错误: 需要class, interface或enum
for(int i=0; i<s1.steps; i++)
^
0_0_38286809_14137\Main.java:67: 错误: 需要class, interface或enum
for(int j=0; j<5; j++)
^
0_0_38286809_14137\Main.java:67: 错误: 需要class, interface或enum
for(int j=0; j<5; j++)
^
0_0_38286809_14137\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:74: 错误: 需要class, interface或enum
s2.s[s1.steps][1] = x1;
^
0_0_38286809_14137\Main.java:75: 错误: 需要class, interface或enum
s2.s[s1.steps][2] = y1;
^
0_0_38286809_14137\Main.java:76: 错误: 需要class, interface或enum
s2.steps = s1.steps + 1;//步数加一
^
0_0_38286809_14137\Main.java:77: 错误: 需要class, interface或enum
Map[y1][x1] = Map[y1][x1] - 1;//地图上的点减小一,怪的血下降1滴
^
0_0_38286809_14137\Main.java:78: 错误: 需要class, interface或enum
q.push(s2);
^
0_0_38286809_14137\Main.java:79: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:81: 错误: 需要class, interface或enum
for(int i=0; i<4; i++)
^
0_0_38286809_14137\Main.java:81: 错误: 需要class, interface或enum
for(int i=0; i<4; i++)
^
0_0_38286809_14137\Main.java:84: 错误: 需要class, interface或enum
int y2 = y1 + dir[i][1];
^
0_0_38286809_14137\Main.java:85: 错误: 需要class, interface或enum
if( x2>=0 && x2<m && y2 >=0 && y2 <n && map2[y2][x2] == 0)
^
0_0_38286809_14137\Main.java:88: 错误: 需要class, interface或enum
else
^
0_0_38286809_14137\Main.java:91: 错误: 需要class, interface或enum
node s2 ;
^
0_0_38286809_14137\Main.java:92: 错误: 需要class, interface或enum
s2.x = x2;
^
0_0_38286809_14137\Main.java:93: 错误: 需要class, interface或enum
s2.y = y2;
^
0_0_38286809_14137\Main.java:94: 错误: 需要class, interface或enum
for(int i1=0; i1<s1.steps; i1++)
^
0_0_38286809_14137\Main.java:94: 错误: 需要class, interface或enum
for(int i1=0; i1<s1.steps; i1++)
^
0_0_38286809_14137\Main.java:94: 错误: 需要class, interface或enum
for(int i1=0; i1<s1.steps; i1++)
^
0_0_38286809_14137\Main.java:96: 错误: 需要class, interface或enum
for(int j1=0; j1< 5; j1++)
^
0_0_38286809_14137\Main.java:96: 错误: 需要class, interface或enum
for(int j1=0; j1< 5; j1++)
^
0_0_38286809_14137\Main.java:99: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:102: 错误: 需要class, interface或enum
s2.s[s1.steps][1] = x1;
^
0_0_38286809_14137\Main.java:103: 错误: 需要class, interface或enum
s2.s[s1.steps][2] = y1;
^
0_0_38286809_14137\Main.java:104: 错误: 需要class, interface或enum
s2.s[s1.steps][3] = x2;
^
0_0_38286809_14137\Main.java:105: 错误: 需要class, interface或enum
s2.s[s1.steps][4] = y2;
^
0_0_38286809_14137\Main.java:106: 错误: 需要class, interface或enum
s2.steps = s1.steps + 1; //步数加一
^
0_0_38286809_14137\Main.java:107: 错误: 需要class, interface或enum
q.push(s2);
^
0_0_38286809_14137\Main.java:108: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:113: 错误: 需要class, interface或enum
return;
^
0_0_38286809_14137\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:120: 错误: 需要class, interface或enum
memset(map2,0,sizeof(map2));
^
0_0_38286809_14137\Main.java:121: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_38286809_14137\Main.java:121: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_38286809_14137\Main.java:121: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_38286809_14137\Main.java:123: 错误: 需要class, interface或enum
for(int j=0;j<m;j++)
^
0_0_38286809_14137\Main.java:123: 错误: 需要class, interface或enum
for(int j=0;j<m;j++)
^
0_0_38286809_14137\Main.java:126: 错误: 需要class, interface或enum
Map[i][j]=c;
^
0_0_38286809_14137\Main.java:127: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:130: 错误: 需要class, interface或enum
bfs();
^
0_0_38286809_14137\Main.java:131: 错误: 需要class, interface或enum
cout<<"FINISH"<<endl;
^
0_0_38286809_14137\Main.java:132: 错误: 需要class, interface或enum
}
^
0_0_38286809_14137\Main.java:134: 错误: 需要class, interface或enum
}
^
91 个错误
|