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_23898956_11522\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_23898956_11522\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
         ^
0_0_23898956_11522\Main.java:3: 错误: 需要class, interface或enum
const int maxn = 5001, maxm = (int)1e5 + 1, maxl = 13, maxv = (int)1.6e6 + 1;
^
0_0_23898956_11522\Main.java:4: 错误: 需要class, interface或enum
int n, m, q, sg[maxn], cnt[maxn], pw3[maxl], f[maxv];
^
0_0_23898956_11522\Main.java:5: 错误: 需要class, interface或enum
vector<int> e[maxn];
^
0_0_23898956_11522\Main.java:6: 错误: 需要class, interface或enum
int dfs(int u) {
^
0_0_23898956_11522\Main.java:9: 错误: 需要class, interface或enum
	vector<int> mex;
	^
0_0_23898956_11522\Main.java:10: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = e[u].begin(); it != e[u].end(); ++it)
	^
0_0_23898956_11522\Main.java:10: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = e[u].begin(); it != e[u].end(); ++it)
	                                             ^
0_0_23898956_11522\Main.java:10: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = e[u].begin(); it != e[u].end(); ++it)
	                                                               ^
0_0_23898956_11522\Main.java:12: 错误: 需要class, interface或enum
	sort(mex.begin(), mex.end());
	^
0_0_23898956_11522\Main.java:13: 错误: 需要class, interface或enum
	unique(mex.begin(), mex.end());
	^
0_0_23898956_11522\Main.java:14: 错误: 需要class, interface或enum
	sg[u] = 0;
	^
0_0_23898956_11522\Main.java:15: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = mex.begin(); it != mex.end() && *it == sg[u]; ++it, ++sg[u]);
	^
0_0_23898956_11522\Main.java:15: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = mex.begin(); it != mex.end() && *it == sg[u]; ++it, ++sg[u]);
	                                            ^
0_0_23898956_11522\Main.java:15: 错误: 需要class, interface或enum
	for(vector<int>::iterator it = mex.begin(); it != mex.end() && *it == sg[u]; ++it, ++sg[u]);
	                                                                             ^
0_0_23898956_11522\Main.java:16: 错误: 需要class, interface或enum
	return sg[u];
	^
0_0_23898956_11522\Main.java:17: 错误: 需要class, interface或enum
}
^
0_0_23898956_11522\Main.java:19: 错误: 需要class, interface或enum
	for(int i = 0, tp = u; v; ++i, tp /= 3, v /= 3) {
	                       ^
0_0_23898956_11522\Main.java:19: 错误: 需要class, interface或enum
	for(int i = 0, tp = u; v; ++i, tp /= 3, v /= 3) {
	                          ^
0_0_23898956_11522\Main.java:21: 错误: 需要class, interface或enum
		u += dif * pw3[i];
		^
0_0_23898956_11522\Main.java:22: 错误: 需要class, interface或enum
	}
	^
0_0_23898956_11522\Main.java:26: 错误: 需要class, interface或enum
	for(int i = 1; i < maxl; ++i)
	^
0_0_23898956_11522\Main.java:26: 错误: 需要class, interface或enum
	for(int i = 1; i < maxl; ++i)
	               ^
0_0_23898956_11522\Main.java:26: 错误: 需要class, interface或enum
	for(int i = 1; i < maxl; ++i)
	                         ^
0_0_23898956_11522\Main.java:28: 错误: 需要class, interface或enum
	memset(sg, -1, sizeof sg);
	^
0_0_23898956_11522\Main.java:29: 错误: 需要class, interface或enum
	while(scanf("%d%d%d", &n, &m, &q) == 3) {
	^
0_0_23898956_11522\Main.java:32: 错误: 需要class, interface或enum
			scanf("%d%d", &u, &v);
			^
0_0_23898956_11522\Main.java:33: 错误: 需要class, interface或enum
			e[u].push_back(v);
			^
0_0_23898956_11522\Main.java:34: 错误: 需要class, interface或enum
		}
		^
0_0_23898956_11522\Main.java:37: 错误: 需要class, interface或enum
			scanf("%d", &u);
			^
0_0_23898956_11522\Main.java:38: 错误: 需要class, interface或enum
			++cnt[u];
			^
0_0_23898956_11522\Main.java:39: 错误: 需要class, interface或enum
		}
		^
0_0_23898956_11522\Main.java:40: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		               ^
0_0_23898956_11522\Main.java:40: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		                       ^
0_0_23898956_11522\Main.java:42: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		^
0_0_23898956_11522\Main.java:42: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		               ^
0_0_23898956_11522\Main.java:42: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		                       ^
0_0_23898956_11522\Main.java:44: 错误: 需要class, interface或enum
			for(int j = 0; sg[i]; ++j, sg[i] >>= 1)
			^
0_0_23898956_11522\Main.java:44: 错误: 需要class, interface或enum
			for(int j = 0; sg[i]; ++j, sg[i] >>= 1)
			               ^
0_0_23898956_11522\Main.java:44: 错误: 需要class, interface或enum
			for(int j = 0; sg[i]; ++j, sg[i] >>= 1)
			                      ^
0_0_23898956_11522\Main.java:47: 错误: 需要class, interface或enum
			sg[i] = msk;
			^
0_0_23898956_11522\Main.java:48: 错误: 需要class, interface或enum
		}
		^
0_0_23898956_11522\Main.java:50: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		^
0_0_23898956_11522\Main.java:50: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		               ^
0_0_23898956_11522\Main.java:50: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		                       ^
0_0_23898956_11522\Main.java:53: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				^
0_0_23898956_11522\Main.java:53: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                             ^
0_0_23898956_11522\Main.java:53: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                                               ^
0_0_23898956_11522\Main.java:55: 错误: 需要class, interface或enum
					mod_inc(tmp, sg[i], 2);
					^
0_0_23898956_11522\Main.java:56: 错误: 需要class, interface或enum
					*it = tmp;
					^
0_0_23898956_11522\Main.java:57: 错误: 需要class, interface或enum
					f[tmp] += cnt[i];
					^
0_0_23898956_11522\Main.java:58: 错误: 需要class, interface或enum
				}
				^
0_0_23898956_11522\Main.java:60: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		               ^
0_0_23898956_11522\Main.java:60: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i)
		                       ^
0_0_23898956_11522\Main.java:62: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                             ^
0_0_23898956_11522\Main.java:62: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                                               ^
0_0_23898956_11522\Main.java:64: 错误: 需要class, interface或enum
					mod_inc(tmp, *it, 2);
					^
0_0_23898956_11522\Main.java:65: 错误: 需要class, interface或enum
					if(!tmp)
					^
0_0_23898956_11522\Main.java:67: 错误: 需要class, interface或enum
					f[*it] -= cnt[i];
					^
0_0_23898956_11522\Main.java:68: 错误: 需要class, interface或enum
				}
				^
0_0_23898956_11522\Main.java:69: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                             ^
0_0_23898956_11522\Main.java:69: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it) {
				                                                               ^
0_0_23898956_11522\Main.java:71: 错误: 需要class, interface或enum
					mod_inc(tmp, *it, 1);
					^
0_0_23898956_11522\Main.java:72: 错误: 需要class, interface或enum
					if(!tmp)
					^
0_0_23898956_11522\Main.java:74: 错误: 需要class, interface或enum
					ans += f[tmp];
					^
0_0_23898956_11522\Main.java:75: 错误: 需要class, interface或enum
				}
				^
0_0_23898956_11522\Main.java:76: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it)
				                                             ^
0_0_23898956_11522\Main.java:76: 错误: 需要class, interface或enum
				for(vector<int>::iterator it = e[i].begin(); it != e[i].end(); ++it)
				                                                               ^
0_0_23898956_11522\Main.java:78: 错误: 需要class, interface或enum
			}
			^
0_0_23898956_11522\Main.java:80: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		^
0_0_23898956_11522\Main.java:80: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		               ^
0_0_23898956_11522\Main.java:80: 错误: 需要class, interface或enum
		for(int i = 1; i <= n; ++i) {
		                       ^
0_0_23898956_11522\Main.java:82: 错误: 需要class, interface或enum
			cnt[i] = 0;
			^
0_0_23898956_11522\Main.java:83: 错误: 需要class, interface或enum
			vector<int>().swap(e[i]);
			^
0_0_23898956_11522\Main.java:84: 错误: 需要class, interface或enum
		}
		^
0_0_23898956_11522\Main.java:87: 错误: 需要class, interface或enum
}
^
77 个错误


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-29 21:10:08, Gzip enabled