0_0_22386693_25960\Main.java:1: 错误: 非法字符: '#'
#include <iostream>
^
0_0_22386693_25960\Main.java:1: 错误: 需要class, interface或enum
#include <iostream>
^
0_0_22386693_25960\Main.java:2: 错误: 非法字符: '#'
#include <cmath>
^
0_0_22386693_25960\Main.java:3: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_22386693_25960\Main.java:5: 错误: 需要class, interface或enum
const int maxn = 1007;
^
0_0_22386693_25960\Main.java:6: 错误: 需要class, interface或enum
const int maxm = 20007;
^
0_0_22386693_25960\Main.java:7: 错误: 需要class, interface或enum
struct edge {
^
0_0_22386693_25960\Main.java:9: 错误: 需要class, interface或enum
edge() {}
^
0_0_22386693_25960\Main.java:12: 错误: 需要class, interface或enum
struct Node {
^
0_0_22386693_25960\Main.java:14: 错误: 需要class, interface或enum
Node(int d = 0, int u = 0) :d(d), u(u) {}
^
0_0_22386693_25960\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:19: 错误: 需要class, interface或enum
int aa; char ch; int F() {
^
0_0_22386693_25960\Main.java:19: 错误: 需要class, interface或enum
int aa; char ch; int F() {
^
0_0_22386693_25960\Main.java:19: 错误: 需要class, interface或enum
int aa; char ch; int F() {
^
0_0_22386693_25960\Main.java:20: 错误: 需要class, interface或enum
while (ch = getchar(), ch < 48 || ch>57); aa = ch - 48;
^
0_0_22386693_25960\Main.java:21: 错误: 需要class, interface或enum
while (ch = getchar(), ch > 47 && ch < 58)aa = aa * 10 + ch - 48; return aa;
^
0_0_22386693_25960\Main.java:21: 错误: 需要class, interface或enum
while (ch = getchar(), ch > 47 && ch < 58)aa = aa * 10 + ch - 48; return aa;
^
0_0_22386693_25960\Main.java:22: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:24: 错误: 需要class, interface或enum
int fi[maxn];
^
0_0_22386693_25960\Main.java:25: 错误: 需要class, interface或enum
int id = 0;
^
0_0_22386693_25960\Main.java:26: 错误: 需要class, interface或enum
int cha[maxn];
^
0_0_22386693_25960\Main.java:27: 错误: 需要class, interface或enum
int vis[maxn];
^
0_0_22386693_25960\Main.java:28: 错误: 需要class, interface或enum
int p;
^
0_0_22386693_25960\Main.java:29: 错误: 需要class, interface或enum
bool dfs(int s, int id) {
^
0_0_22386693_25960\Main.java:31: 错误: 需要class, interface或enum
for (int i = fi[s]; G[i].v != 0; i = G[i].next) {
^
0_0_22386693_25960\Main.java:31: 错误: 需要class, interface或enum
for (int i = fi[s]; G[i].v != 0; i = G[i].next) {
^
0_0_22386693_25960\Main.java:31: 错误: 需要class, interface或enum
for (int i = fi[s]; G[i].v != 0; i = G[i].next) {
^
0_0_22386693_25960\Main.java:33: 错误: 需要class, interface或enum
if (cha[p] + id == 1)
^
0_0_22386693_25960\Main.java:35: 错误: 需要class, interface或enum
if (!vis[p]) {
^
0_0_22386693_25960\Main.java:37: 错误: 需要class, interface或enum
if (!dfs(p, 1 - id))
^
0_0_22386693_25960\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:42: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:45: 错误: 需要class, interface或enum
bool solve() {
^
0_0_22386693_25960\Main.java:46: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:46: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:51: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:51: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:58: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:58: 错误: 需要class, interface或enum
for (int i = 1; i <= n; i++) {
^
0_0_22386693_25960\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:70: 错误: 需要class, interface或enum
memset(vis + 1, 0, sizeof(int)*n);
^
0_0_22386693_25960\Main.java:71: 错误: 需要class, interface或enum
memset(fi + 1, 0, sizeof(int)*n);
^
0_0_22386693_25960\Main.java:72: 错误: 需要class, interface或enum
id = 0;
^
0_0_22386693_25960\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; i++) {
^
0_0_22386693_25960\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; i++) {
^
0_0_22386693_25960\Main.java:73: 错误: 需要class, interface或enum
for (int i = 0; i < m; i++) {
^
0_0_22386693_25960\Main.java:75: 错误: 需要class, interface或enum
G[++id] = edge(u, v, fi[u]), fi[u] = id;
^
0_0_22386693_25960\Main.java:76: 错误: 需要class, interface或enum
G[++id] = edge(v, u, fi[v]), fi[v] = id;
^
0_0_22386693_25960\Main.java:77: 错误: 需要class, interface或enum
cha[u] = cha[v] = 2;//有连接即为2 无连接为-1
^
0_0_22386693_25960\Main.java:78: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:79: 错误: 需要class, interface或enum
for (int i = 0; i < x; i++) {
^
0_0_22386693_25960\Main.java:79: 错误: 需要class, interface或enum
for (int i = 0; i < x; i++) {
^
0_0_22386693_25960\Main.java:81: 错误: 需要class, interface或enum
cha[u] = 0;//好人为0
^
0_0_22386693_25960\Main.java:82: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:83: 错误: 需要class, interface或enum
for (int i = 0; i < y; i++) {
^
0_0_22386693_25960\Main.java:83: 错误: 需要class, interface或enum
for (int i = 0; i < y; i++) {
^
0_0_22386693_25960\Main.java:85: 错误: 需要class, interface或enum
cha[u] = 1;
^
0_0_22386693_25960\Main.java:86: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:88: 错误: 需要class, interface或enum
if (isok)
^
0_0_22386693_25960\Main.java:90: 错误: 需要class, interface或enum
else
^
0_0_22386693_25960\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_22386693_25960\Main.java:94: 错误: 需要class, interface或enum
}
^
65 个错误
|