0_0_26243026_13183\Main.java:4: 错误: 非法字符: '#'
#include "stdafx.h"
^
0_0_26243026_13183\Main.java:4: 错误: 需要class, interface或enum
#include "stdafx.h"
^
0_0_26243026_13183\Main.java:5: 错误: 非法字符: '#'
#include <iostream>
^
0_0_26243026_13183\Main.java:6: 错误: 非法字符: '#'
#include <string>
^
0_0_26243026_13183\Main.java:7: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_26243026_13183\Main.java:11: 错误: 需要class, interface或enum
struct Edge {
^
0_0_26243026_13183\Main.java:13: 错误: 需要class, interface或enum
int e;
^
0_0_26243026_13183\Main.java:14: 错误: 需要class, interface或enum
int w;
^
0_0_26243026_13183\Main.java:15: 错误: 需要class, interface或enum
};
^
0_0_26243026_13183\Main.java:17: 错误: 需要class, interface或enum
int cmp(const Edge &a, const Edge &b)
^
0_0_26243026_13183\Main.java:20: 错误: 需要class, interface或enum
return 0;
^
0_0_26243026_13183\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:26: 错误: 需要class, interface或enum
while ((temp = parent[j]) != j) { j = temp; }
^
0_0_26243026_13183\Main.java:26: 错误: 需要class, interface或enum
while ((temp = parent[j]) != j) { j = temp; }
^
0_0_26243026_13183\Main.java:27: 错误: 需要class, interface或enum
while ((temp = parent[i]) != j) { parent[i] = j; i = temp; }
^
0_0_26243026_13183\Main.java:27: 错误: 需要class, interface或enum
while ((temp = parent[i]) != j) { parent[i] = j; i = temp; }
^
0_0_26243026_13183\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:34: 错误: 需要class, interface或enum
while (cin >> N, N)
^
0_0_26243026_13183\Main.java:37: 错误: 需要class, interface或enum
int* parent = new int[N + 1];
^
0_0_26243026_13183\Main.java:38: 错误: 需要class, interface或enum
for (int i = 1; i <= N; i++)
^
0_0_26243026_13183\Main.java:38: 错误: 需要class, interface或enum
for (int i = 1; i <= N; i++)
^
0_0_26243026_13183\Main.java:38: 错误: 需要class, interface或enum
for (int i = 1; i <= N; i++)
^
0_0_26243026_13183\Main.java:41: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:44: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:44: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:44: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:47: 错误: 需要class, interface或enum
cin >> edges[i].e;
^
0_0_26243026_13183\Main.java:48: 错误: 需要class, interface或enum
cin >> edges[i].w;
^
0_0_26243026_13183\Main.java:49: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:53: 错误: 需要class, interface或enum
int all_num = 0;
^
0_0_26243026_13183\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:54: 错误: 需要class, interface或enum
for (int i = 0; i < M; i++)
^
0_0_26243026_13183\Main.java:57: 错误: 需要class, interface或enum
int set_e = find_set(parent, edges[i].e);
^
0_0_26243026_13183\Main.java:58: 错误: 需要class, interface或enum
if (set_s != set_e)
^
0_0_26243026_13183\Main.java:61: 错误: 需要class, interface或enum
parent[set_e] = set_s;
^
0_0_26243026_13183\Main.java:62: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:66: 错误: 需要class, interface或enum
}
^
0_0_26243026_13183\Main.java:69: 错误: 需要class, interface或enum
return 0;
^
0_0_26243026_13183\Main.java:70: 错误: 需要class, interface或enum
}
^
40 个错误
|