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_37657381_30012\Main.java:1: 错误: 需要class, interface或enum
using namespace std;
^
0_0_37657381_30012\Main.java:2: 错误: 非法字符: '#'
#define ll long long
^
0_0_37657381_30012\Main.java:2: 错误: 需要class, interface或enum
#define ll long long
        ^
0_0_37657381_30012\Main.java:6: 错误: 需要class, interface或enum
int tr[N][26], ne[N], idx, cnt[N];
^
0_0_37657381_30012\Main.java:7: 错误: 需要class, interface或enum
string s[110];
^
0_0_37657381_30012\Main.java:8: 错误: 需要class, interface或enum
int dp[51][N][26], w[N];
^
0_0_37657381_30012\Main.java:10: 错误: 需要class, interface或enum
void insert(int pos){
^
0_0_37657381_30012\Main.java:12: 错误: 需要class, interface或enum
	for (int i = 0; i < s[pos].size(); i ++){
	^
0_0_37657381_30012\Main.java:12: 错误: 需要class, interface或enum
	for (int i = 0; i < s[pos].size(); i ++){
	                ^
0_0_37657381_30012\Main.java:12: 错误: 需要class, interface或enum
	for (int i = 0; i < s[pos].size(); i ++){
	                                   ^
0_0_37657381_30012\Main.java:14: 错误: 需要class, interface或enum
		if (!tr[p][u]) tr[p][u] = ++idx;
		^
0_0_37657381_30012\Main.java:15: 错误: 需要class, interface或enum
		p = tr[p][u];
		^
0_0_37657381_30012\Main.java:16: 错误: 需要class, interface或enum
	}
	^
0_0_37657381_30012\Main.java:18: 错误: 需要class, interface或enum
}
^
0_0_37657381_30012\Main.java:22: 错误: 需要class, interface或enum
	for (int i = 0; i < 26; i ++)
	^
0_0_37657381_30012\Main.java:22: 错误: 需要class, interface或enum
	for (int i = 0; i < 26; i ++)
	                ^
0_0_37657381_30012\Main.java:22: 错误: 需要class, interface或enum
	for (int i = 0; i < 26; i ++)
	                        ^
0_0_37657381_30012\Main.java:26: 错误: 需要class, interface或enum
	while (q.size()){
	^
0_0_37657381_30012\Main.java:27: 错误: 需要class, interface或enum
		int t = q.front(); q.pop();
		                   ^
0_0_37657381_30012\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < 26; i ++){
		^
0_0_37657381_30012\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < 26; i ++){
		                ^
0_0_37657381_30012\Main.java:28: 错误: 需要class, interface或enum
		for (int i = 0; i < 26; i ++){
		                        ^
0_0_37657381_30012\Main.java:30: 错误: 需要class, interface或enum
			if (!p) tr[t][i] = tr[ne[t]][i];
			^
0_0_37657381_30012\Main.java:31: 错误: 需要class, interface或enum
			else{
			^
0_0_37657381_30012\Main.java:33: 错误: 需要class, interface或enum
				q.push(p);
				^
0_0_37657381_30012\Main.java:34: 错误: 需要class, interface或enum
			}
			^
0_0_37657381_30012\Main.java:40: 错误: 需要class, interface或enum
	int n, m; idx = 0;
	          ^
0_0_37657381_30012\Main.java:41: 错误: 需要class, interface或enum
	memset(tr, 0, sizeof tr);
	^
0_0_37657381_30012\Main.java:42: 错误: 需要class, interface或enum
	memset(dp, 0xcf, sizeof dp);
	^
0_0_37657381_30012\Main.java:43: 错误: 需要class, interface或enum
	cin >> n >> m;
	^
0_0_37657381_30012\Main.java:44: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++)
	^
0_0_37657381_30012\Main.java:44: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++)
	                ^
0_0_37657381_30012\Main.java:44: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++)
	                        ^
0_0_37657381_30012\Main.java:47: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++) 
	^
0_0_37657381_30012\Main.java:47: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++) 
	                ^
0_0_37657381_30012\Main.java:47: 错误: 需要class, interface或enum
	for (int i = 1; i <= m; i ++) 
	                        ^
0_0_37657381_30012\Main.java:50: 错误: 需要class, interface或enum
	dp[0][0][tr[0][1]] = dp[0][0][0] = 0;
	^
0_0_37657381_30012\Main.java:51: 错误: 需要class, interface或enum
	int ans = 0;
	^
0_0_37657381_30012\Main.java:52: 错误: 需要class, interface或enum
	for (int i = 0; i < n; i ++){
	^
0_0_37657381_30012\Main.java:52: 错误: 需要class, interface或enum
	for (int i = 0; i < n; i ++){
	                ^
0_0_37657381_30012\Main.java:52: 错误: 需要class, interface或enum
	for (int i = 0; i < n; i ++){
	                       ^
0_0_37657381_30012\Main.java:53: 错误: 需要class, interface或enum
		for (int j = idx; j >= 0; j --){
		                  ^
0_0_37657381_30012\Main.java:53: 错误: 需要class, interface或enum
		for (int j = idx; j >= 0; j --){
		                          ^
0_0_37657381_30012\Main.java:54: 错误: 需要class, interface或enum
			for (int k = 0; k < 26; k ++){
			                ^
0_0_37657381_30012\Main.java:54: 错误: 需要class, interface或enum
			for (int k = 0; k < 26; k ++){
			                        ^
0_0_37657381_30012\Main.java:56: 错误: 需要class, interface或enum
				if (cnt[u] && s[cnt[u]].size()){
				^
0_0_37657381_30012\Main.java:58: 错误: 需要class, interface或enum
					dp[i+len][k][u] = max(dp[i+len][k][u], dp[i][j][k] + w[cnt[u]]);
					^
0_0_37657381_30012\Main.java:59: 错误: 需要class, interface或enum
				}
				^
0_0_37657381_30012\Main.java:61: 错误: 需要class, interface或enum
			}
			^
0_0_37657381_30012\Main.java:65: 错误: 需要class, interface或enum
}
^
0_0_37657381_30012\Main.java:69: 错误: 需要class, interface或enum
	int t;
	^
0_0_37657381_30012\Main.java:70: 错误: 需要class, interface或enum
	cin >> t;
	^
0_0_37657381_30012\Main.java:71: 错误: 需要class, interface或enum
	while (t --) solve();
	^
0_0_37657381_30012\Main.java:72: 错误: 需要class, interface或enum
	return 0;
	^
0_0_37657381_30012\Main.java:73: 错误: 需要class, interface或enum
}
^
55 个错误


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-23 01:24:11, Gzip enabled