0_0_24713253_24006\Main.java:1: 错误: 需要class, interface或enum
int dx[] = {-1,0,1,0};//up Right down Left
^
0_0_24713253_24006\Main.java:1: 错误: 需要class, interface或enum
int dx[] = {-1,0,1,0};//up Right down Left
^
0_0_24713253_24006\Main.java:2: 错误: 需要class, interface或enum
int dy[] = {0,1,0,-1};
^
0_0_24713253_24006\Main.java:4: 错误: 需要class, interface或enum
const int N = 6;
^
0_0_24713253_24006\Main.java:5: 错误: 需要class, interface或enum
int a[N][N+1], b[N][N], temp[N][N];
^
0_0_24713253_24006\Main.java:6: 错误: 需要class, interface或enum
int n, m, cnt, ans;
^
0_0_24713253_24006\Main.java:8: 错误: 需要class, interface或enum
struct node{
^
0_0_24713253_24006\Main.java:10: 错误: 需要class, interface或enum
}u, v;
^
0_0_24713253_24006\Main.java:12: 错误: 需要class, interface或enum
queue<node> q;
^
0_0_24713253_24006\Main.java:14: 错误: 需要class, interface或enum
bool code(int *c){//将数组a[i][]编码成c[i]
^
0_0_24713253_24006\Main.java:16: 错误: 需要class, interface或enum
FOR(i, 0, n) {
^
0_0_24713253_24006\Main.java:18: 错误: 需要class, interface或enum
FOR(j, 0, m) c[i] = c[i]*5+a[i][j];
^
0_0_24713253_24006\Main.java:19: 错误: 需要class, interface或enum
if(c[i]) flag = false;
^
0_0_24713253_24006\Main.java:20: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:26: 错误: 需要class, interface或enum
a[i][j] = c[i]%5; c[i] /= 5;
^
0_0_24713253_24006\Main.java:27: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:31: 错误: 需要class, interface或enum
void dfs(int x, int y){
^
0_0_24713253_24006\Main.java:34: 错误: 需要class, interface或enum
if(xx<0 || yy<0 || xx==n || yy==m) continue;
^
0_0_24713253_24006\Main.java:35: 错误: 需要class, interface或enum
if(a[xx][yy]==t && b[xx][yy]==0) {
^
0_0_24713253_24006\Main.java:37: 错误: 需要class, interface或enum
dfs(xx, yy);
^
0_0_24713253_24006\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:43: 错误: 需要class, interface或enum
void remove(int x, int y){
^
0_0_24713253_24006\Main.java:45: 错误: 需要class, interface或enum
b[x][y] = ++cnt;
^
0_0_24713253_24006\Main.java:46: 错误: 需要class, interface或enum
dfs(x, y);//深搜确定和a[x][y]相同且连通的部分
^
0_0_24713253_24006\Main.java:48: 错误: 需要class, interface或enum
FOR(j, 0, m){//某列被去掉了一部分,剩余的下移
^
0_0_24713253_24006\Main.java:50: 错误: 需要class, interface或enum
FOD(i, n-1, 0) {
^
0_0_24713253_24006\Main.java:52: 错误: 需要class, interface或enum
if(b[i][j]!=cnt) tt[p++] = a[i][j];
^
0_0_24713253_24006\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:55: 错误: 需要class, interface或enum
FOR(i, 0, n-p) a[i][j] = 0;
^
0_0_24713253_24006\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:66: 错误: 需要class, interface或enum
code(u.a); u.d=0;
^
0_0_24713253_24006\Main.java:67: 错误: 需要class, interface或enum
while(!q.empty()) q.pop(); q.push(u);
^
0_0_24713253_24006\Main.java:67: 错误: 需要class, interface或enum
while(!q.empty()) q.pop(); q.push(u);
^
0_0_24713253_24006\Main.java:68: 错误: 需要class, interface或enum
while(!q.empty()){
^
0_0_24713253_24006\Main.java:69: 错误: 需要class, interface或enum
u = q.front(); q.pop();
^
0_0_24713253_24006\Main.java:70: 错误: 需要class, interface或enum
decode(u.a);
^
0_0_24713253_24006\Main.java:71: 错误: 需要class, interface或enum
FOR(i, 0, n) FOR(j, 0, m) b[i][j] = 0, temp[i][j] = a[i][j];
^
0_0_24713253_24006\Main.java:72: 错误: 需要class, interface或enum
cnt = 0;
^
0_0_24713253_24006\Main.java:73: 错误: 需要class, interface或enum
FOR(j, 0, m){
^
0_0_24713253_24006\Main.java:76: 错误: 需要class, interface或enum
if(b[i][j] ) continue;
^
0_0_24713253_24006\Main.java:77: 错误: 需要class, interface或enum
remove(i, j); //把和ij相同的去掉
^
0_0_24713253_24006\Main.java:78: 错误: 需要class, interface或enum
v.d = u.d+1;
^
0_0_24713253_24006\Main.java:79: 错误: 需要class, interface或enum
if( code(v.a) ) { ans = v.d; return;}
^
0_0_24713253_24006\Main.java:79: 错误: 需要class, interface或enum
if( code(v.a) ) { ans = v.d; return;}
^
0_0_24713253_24006\Main.java:79: 错误: 需要class, interface或enum
if( code(v.a) ) { ans = v.d; return;}
^
0_0_24713253_24006\Main.java:81: 错误: 需要class, interface或enum
FOR(ii, 0, n) FOR(jj, 0, m) a[ii][jj] = temp[ii][jj];
^
0_0_24713253_24006\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:88: 错误: 非法字符: '#'
#ifndef ONLINE_JUDGE
^
0_0_24713253_24006\Main.java:91: 错误: 非法字符: '#'
#endif
^
0_0_24713253_24006\Main.java:93: 错误: 需要class, interface或enum
while(~scanf("%d%d", &n, &m)){
^
0_0_24713253_24006\Main.java:96: 错误: 需要class, interface或enum
ans = 0;
^
0_0_24713253_24006\Main.java:97: 错误: 需要class, interface或enum
bfs();
^
0_0_24713253_24006\Main.java:98: 错误: 需要class, interface或enum
printf("%d\n", ans);
^
0_0_24713253_24006\Main.java:99: 错误: 需要class, interface或enum
}
^
0_0_24713253_24006\Main.java:102: 错误: 需要class, interface或enum
}
^
57 个错误
|