F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_35972660_32540\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_35972660_32540\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_35972660_32540\Main.java:2: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_35972660_32540\Main.java:3: 错误: 非法字符: '#'
#include <cstring>
^
0_0_35972660_32540\Main.java:5: 错误: 需要class, interface或enum
typedef long long ll;
^
0_0_35972660_32540\Main.java:6: 错误: 需要class, interface或enum
typedef unsigned long long ull;
^
0_0_35972660_32540\Main.java:7: 错误: 需要class, interface或enum
typedef pair<ull, ull> pii;
^
0_0_35972660_32540\Main.java:8: 错误: 需要class, interface或enum
typedef pair<ll, ll>pll;
^
0_0_35972660_32540\Main.java:9: 错误: 需要class, interface或enum
template<typename T>
^
0_0_35972660_32540\Main.java:12: 错误: 需要class, interface或enum
	char c = getchar();
	^
0_0_35972660_32540\Main.java:13: 错误: 需要class, interface或enum
	x = 0;
	^
0_0_35972660_32540\Main.java:14: 错误: 需要class, interface或enum
	while (c > '9' || c < '0') {
	^
0_0_35972660_32540\Main.java:16: 错误: 需要class, interface或enum
		c = getchar();
		^
0_0_35972660_32540\Main.java:17: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:20: 错误: 需要class, interface或enum
		c = getchar();
		^
0_0_35972660_32540\Main.java:21: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:23: 错误: 需要class, interface或enum
}
^
0_0_35972660_32540\Main.java:25: 错误: 需要class, interface或enum
const int M = 2e7 + 10;
^
0_0_35972660_32540\Main.java:26: 错误: 需要class, interface或enum
const int mod = 1e9 + 7;
^
0_0_35972660_32540\Main.java:27: 错误: 需要class, interface或enum
const int inf = 0x3f3f3f3f;
^
0_0_35972660_32540\Main.java:28: 错误: 需要class, interface或enum
const ull seed = 31;
^
0_0_35972660_32540\Main.java:29: 错误: 需要class, interface或enum
ll gcd(ll x, ll y) {
^
0_0_35972660_32540\Main.java:31: 错误: 需要class, interface或enum
	return gcd(y, x % y);
	^
0_0_35972660_32540\Main.java:32: 错误: 需要class, interface或enum
}
^
0_0_35972660_32540\Main.java:35: 错误: 需要class, interface或enum
struct edge {
^
0_0_35972660_32540\Main.java:37: 错误: 需要class, interface或enum
}e[M];
^
0_0_35972660_32540\Main.java:38: 错误: 需要class, interface或enum
void add(int u, int v, int w = 0) {
^
0_0_35972660_32540\Main.java:40: 错误: 需要class, interface或enum
	e[cntE].to = v;
	^
0_0_35972660_32540\Main.java:41: 错误: 需要class, interface或enum
	e[cntE].next = head[u];
	^
0_0_35972660_32540\Main.java:42: 错误: 需要class, interface或enum
	head[u] = cntE++;
	^
0_0_35972660_32540\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_35972660_32540\Main.java:45: 错误: 需要class, interface或enum
int rt, sz, maxn;
^
0_0_35972660_32540\Main.java:46: 错误: 需要class, interface或enum
int sim[N], mxson[N];
^
0_0_35972660_32540\Main.java:47: 错误: 需要class, interface或enum
bool vis[N];
^
0_0_35972660_32540\Main.java:48: 错误: 需要class, interface或enum
void getroot(int x, int fx) {
^
0_0_35972660_32540\Main.java:49: 错误: 需要class, interface或enum
	sim[x] = 1; mxson[x] = 0;
	            ^
0_0_35972660_32540\Main.java:50: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	^
0_0_35972660_32540\Main.java:50: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                      ^
0_0_35972660_32540\Main.java:50: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                          ^
0_0_35972660_32540\Main.java:52: 错误: 需要class, interface或enum
		if (vis[v] || v == fx) continue;
		^
0_0_35972660_32540\Main.java:53: 错误: 需要class, interface或enum
		getroot(v, x);
		^
0_0_35972660_32540\Main.java:54: 错误: 需要class, interface或enum
		sim[x] += sim[v];
		^
0_0_35972660_32540\Main.java:55: 错误: 需要class, interface或enum
		mxson[x] = max(mxson[x], sim[v]);
		^
0_0_35972660_32540\Main.java:56: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:58: 错误: 需要class, interface或enum
	if (mxson[x] < maxn) {
	^
0_0_35972660_32540\Main.java:60: 错误: 需要class, interface或enum
		rt = x;
		^
0_0_35972660_32540\Main.java:61: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:64: 错误: 需要class, interface或enum
int dp[1050];
^
0_0_35972660_32540\Main.java:65: 错误: 需要class, interface或enum
int num[N];
^
0_0_35972660_32540\Main.java:66: 错误: 需要class, interface或enum
int a[N];
^
0_0_35972660_32540\Main.java:67: 错误: 需要class, interface或enum
int tot;
^
0_0_35972660_32540\Main.java:68: 错误: 需要class, interface或enum
void dfs(int x, int fx, int sta) {
^
0_0_35972660_32540\Main.java:70: 错误: 需要class, interface或enum
	num[++tot] = sta;
	^
0_0_35972660_32540\Main.java:71: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	^
0_0_35972660_32540\Main.java:71: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                      ^
0_0_35972660_32540\Main.java:71: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                          ^
0_0_35972660_32540\Main.java:73: 错误: 需要class, interface或enum
		if (vis[v] || v == fx) continue;
		^
0_0_35972660_32540\Main.java:74: 错误: 需要class, interface或enum
		dfs(v, x, sta | (1 << a[v]));
		^
0_0_35972660_32540\Main.java:75: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:79: 错误: 需要class, interface或enum
	memset(dp, 0, sizeof(int) * ((1 << k) + 10));
	^
0_0_35972660_32540\Main.java:80: 错误: 需要class, interface或enum
	dfs(x, 0, sta);
	^
0_0_35972660_32540\Main.java:81: 错误: 需要class, interface或enum
	for (int i = 0; i < k; ++i) {
	^
0_0_35972660_32540\Main.java:81: 错误: 需要class, interface或enum
	for (int i = 0; i < k; ++i) {
	                ^
0_0_35972660_32540\Main.java:81: 错误: 需要class, interface或enum
	for (int i = 0; i < k; ++i) {
	                       ^
0_0_35972660_32540\Main.java:82: 错误: 需要class, interface或enum
		for (int now = (1 << k) - 1; now >= 0; --now) {
		                             ^
0_0_35972660_32540\Main.java:82: 错误: 需要class, interface或enum
		for (int now = (1 << k) - 1; now >= 0; --now) {
		                                       ^
0_0_35972660_32540\Main.java:84: 错误: 需要class, interface或enum
		}
		^
0_0_35972660_32540\Main.java:87: 错误: 需要class, interface或enum
	for (int i = 2, tmp = (1 << k) - 1; i <= tot; ++i) {
	^
0_0_35972660_32540\Main.java:87: 错误: 需要class, interface或enum
	for (int i = 2, tmp = (1 << k) - 1; i <= tot; ++i) {
	                                    ^
0_0_35972660_32540\Main.java:87: 错误: 需要class, interface或enum
	for (int i = 2, tmp = (1 << k) - 1; i <= tot; ++i) {
	                                              ^
0_0_35972660_32540\Main.java:89: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:91: 错误: 需要class, interface或enum
	return res;
	^
0_0_35972660_32540\Main.java:92: 错误: 需要class, interface或enum
}
^
0_0_35972660_32540\Main.java:95: 错误: 需要class, interface或enum
	ans += cal(x, 1 << a[x]);
	^
0_0_35972660_32540\Main.java:96: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	^
0_0_35972660_32540\Main.java:96: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                      ^
0_0_35972660_32540\Main.java:96: 错误: 需要class, interface或enum
	for (int i = head[x]; ~i; i = e[i].next) {
	                          ^
0_0_35972660_32540\Main.java:98: 错误: 需要class, interface或enum
		if (vis[v]) continue;
		^
0_0_35972660_32540\Main.java:99: 错误: 需要class, interface或enum
		ans -= cal(v, 0);
		^
0_0_35972660_32540\Main.java:100: 错误: 需要class, interface或enum
		sz = sim[v];
		^
0_0_35972660_32540\Main.java:101: 错误: 需要class, interface或enum
		maxn = inf;
		^
0_0_35972660_32540\Main.java:102: 错误: 需要class, interface或enum
		getroot(rt = v, 0);
		^
0_0_35972660_32540\Main.java:103: 错误: 需要class, interface或enum
		divide(rt);
		^
0_0_35972660_32540\Main.java:104: 错误: 需要class, interface或enum
	}
	^
0_0_35972660_32540\Main.java:107: 错误: 非法字符: '#'
#ifdef _DEBUG
^
0_0_35972660_32540\Main.java:110: 错误: 非法字符: '#'
#endif
^
0_0_35972660_32540\Main.java:111: 错误: 需要class, interface或enum
	int T = 1, cas = 0;
	^
0_0_35972660_32540\Main.java:112: 错误: 需要class, interface或enum
	while (~scanf("%d %d", &n, &k)) {
	^
0_0_35972660_32540\Main.java:113: 错误: 需要class, interface或enum
		memset(head, -1, sizeof(int) * (n + 10)); cntE = 0;
		                                          ^
0_0_35972660_32540\Main.java:114: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i) rd(a[i]), --a[i];
		^
0_0_35972660_32540\Main.java:114: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i) rd(a[i]), --a[i];
		                ^
0_0_35972660_32540\Main.java:114: 错误: 需要class, interface或enum
		for (int i = 1; i <= n; ++i) rd(a[i]), --a[i];
		                        ^
0_0_35972660_32540\Main.java:115: 错误: 需要class, interface或enum
		for (int i = 1; i < n; ++i) {
		^
0_0_35972660_32540\Main.java:115: 错误: 需要class, interface或enum
		for (int i = 1; i < n; ++i) {
		                ^
0_0_35972660_


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-24 12:37:33, Gzip enabled