0_0_29473613_2750\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_29473613_2750\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
^
0_0_29473613_2750\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_29473613_2750\Main.java:3: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_29473613_2750\Main.java:4: 错误: 非法字符: '#'
#include<queue>
^
0_0_29473613_2750\Main.java:5: 错误: 非法字符: '#'
#define MAXN 20
^
0_0_29473613_2750\Main.java:6: 错误: 非法字符: '#'
#define MAXD 210
^
0_0_29473613_2750\Main.java:7: 错误: 非法字符: '#'
#define MAXL 30
^
0_0_29473613_2750\Main.java:9: 错误: 需要class, interface或enum
int N, M, a[MAXN][MAXN];
^
0_0_29473613_2750\Main.java:10: 错误: 需要class, interface或enum
void init()
^
0_0_29473613_2750\Main.java:13: 错误: 需要class, interface或enum
char b[MAXN];
^
0_0_29473613_2750\Main.java:14: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:14: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:14: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:17: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++) a[i][j] = b[j] - '0';
^
0_0_29473613_2750\Main.java:17: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++) a[i][j] = b[j] - '0';
^
0_0_29473613_2750\Main.java:17: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++) a[i][j] = b[j] - '0';
^
0_0_29473613_2750\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:23: 错误: 需要class, interface或enum
};
^
0_0_29473613_2750\Main.java:24: 错误: 需要class, interface或enum
struct St
^
0_0_29473613_2750\Main.java:27: 错误: 需要class, interface或enum
int value;
^
0_0_29473613_2750\Main.java:28: 错误: 需要class, interface或enum
List list[MAXL];
^
0_0_29473613_2750\Main.java:29: 错误: 需要class, interface或enum
bool operator < (const St &t) const
^
0_0_29473613_2750\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:36: 错误: 需要class, interface或enum
this->N = N, this->M = M;
^
0_0_29473613_2750\Main.java:37: 错误: 需要class, interface或enum
memcpy(this->g, g, sizeof(this->g));
^
0_0_29473613_2750\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:46: 错误: 需要class, interface或enum
col[x][y] = c, ++ cnt;
^
0_0_29473613_2750\Main.java:47: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:47: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:47: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:50: 错误: 需要class, interface或enum
if(inside(nx, ny) && g[nx][ny] == g[x][y] && !col[nx][ny])
^
0_0_29473613_2750\Main.java:52: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:57: 错误: 需要class, interface或enum
g[x][y] = 0;
^
0_0_29473613_2750\Main.java:58: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:58: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:58: 错误: 需要class, interface或enum
for(i = 0; i < 4; i ++)
^
0_0_29473613_2750\Main.java:61: 错误: 需要class, interface或enum
if(inside(nx, ny) && col[x][y] == col[nx][ny] && g[nx][ny])
^
0_0_29473613_2750\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:67: 错误: 需要class, interface或enum
for(int i = 0; i < N; i ++) if(g[i][j]) return 0;
^
0_0_29473613_2750\Main.java:67: 错误: 需要class, interface或enum
for(int i = 0; i < N; i ++) if(g[i][j]) return 0;
^
0_0_29473613_2750\Main.java:68: 错误: 需要class, interface或enum
return 1;
^
0_0_29473613_2750\Main.java:69: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:73: 错误: 需要class, interface或enum
kmax = 0;
^
0_0_29473613_2750\Main.java:74: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:74: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:74: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:77: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:77: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:77: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:82: 错误: 需要class, interface或enum
++ k;
^
0_0_29473613_2750\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:85: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:87: 错误: 需要class, interface或enum
k = 0;
^
0_0_29473613_2750\Main.java:88: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:88: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:88: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:91: 错误: 需要class, interface或enum
if(j != k) for(i = 0; i < N; i ++) g[i][k] = g[i][j];
^
0_0_29473613_2750\Main.java:91: 错误: 需要class, interface或enum
if(j != k) for(i = 0; i < N; i ++) g[i][k] = g[i][j];
^
0_0_29473613_2750\Main.java:92: 错误: 需要class, interface或enum
++ k;
^
0_0_29473613_2750\Main.java:93: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:95: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:99: 错误: 需要class, interface或enum
c = 0;
^
0_0_29473613_2750\Main.java:100: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:100: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:100: 错误: 需要class, interface或enum
for(i = 0; i < N; i ++)
^
0_0_29473613_2750\Main.java:101: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++) col[i][j] = 0;
^
0_0_29473613_2750\Main.java:101: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++) col[i][j] = 0;
^
0_0_29473613_2750\Main.java:102: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:102: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:102: 错误: 需要class, interface或enum
for(i = N - 1; i >= 0; i --)
^
0_0_29473613_2750\Main.java:103: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:103: 错误: 需要class, interface或enum
for(j = 0; j < M; j ++)
^
0_0_29473613_2750\Main.java:107: 错误: 需要class, interface或enum
color(i, j, cnt[c], c);
^
0_0_29473613_2750\Main.java:108: 错误: 需要class, interface或enum
if(cnt[c] == 1) col[i][j] = 0, -- c;
^
0_0_29473613_2750\Main.java:109: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:114: 错误: 需要class, interface或enum
for(int i = 1; i <= c; i ++) if(cnt[i]) value += cnt[i] * (cnt[i] - 1);
^
0_0_29473613_2750\Main.java:114: 错误: 需要class, interface或enum
for(int i = 1; i <= c; i ++) if(cnt[i]) value += cnt[i] * (cnt[i] - 1);
^
0_0_29473613_2750\Main.java:114: 错误: 需要class, interface或enum
for(int i = 1; i <= c; i ++) if(cnt[i]) value += cnt[i] * (cnt[i] - 1);
^
0_0_29473613_2750\Main.java:115: 错误: 需要class, interface或enum
}
^
0_0_29473613_2750\Main.java:117: 错误: 需要class, interface或enum
void solve()
^
0_0_29473613_2750\Main.java:120: 错误: 需要class, interface或enum
St ans;
^
0_0_29473613_2750\Main.java:121: 错误: 需要class, interface或enum
ans.init(N, M, a);
^
0_0_29473613_2750\Main.java:122: 错误: 需要class, in
|