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_26583210_3802\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_26583210_3802\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_26583210_3802\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_26583210_3802\Main.java:5: 错误: 需要class, interface或enum
const int maxn = 100000 + 10;
^
0_0_26583210_3802\Main.java:6: 错误: 需要class, interface或enum
struct Node {
^
0_0_26583210_3802\Main.java:8: 错误: 需要class, interface或enum
	int mc;
	^
0_0_26583210_3802\Main.java:9: 错误: 需要class, interface或enum
	void clear(){
	^
0_0_26583210_3802\Main.java:11: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:14: 错误: 需要class, interface或enum
Node *que[maxn*2];
^
0_0_26583210_3802\Main.java:15: 错误: 需要class, interface或enum
struct AC {
^
0_0_26583210_3802\Main.java:17: 错误: 需要class, interface或enum
	Node* newNode() {
	^
0_0_26583210_3802\Main.java:19: 错误: 需要class, interface或enum
		return cur++;
		^
0_0_26583210_3802\Main.java:20: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:23: 错误: 需要class, interface或enum
		sroot = newNode();
		^
0_0_26583210_3802\Main.java:24: 错误: 需要class, interface或enum
		root = newNode();
		^
0_0_26583210_3802\Main.java:25: 错误: 需要class, interface或enum
		root->fail = sroot;
		^
0_0_26583210_3802\Main.java:26: 错误: 需要class, interface或enum
		for(int i = 0; i < K; i++) {
		^
0_0_26583210_3802\Main.java:26: 错误: 需要class, interface或enum
		for(int i = 0; i < K; i++) {
		               ^
0_0_26583210_3802\Main.java:26: 错误: 需要class, interface或enum
		for(int i = 0; i < K; i++) {
		                      ^
0_0_26583210_3802\Main.java:28: 错误: 需要class, interface或enum
		}
		^
0_0_26583210_3802\Main.java:30: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:33: 错误: 需要class, interface或enum
		for(; *s; s++) {
		^
0_0_26583210_3802\Main.java:33: 错误: 需要class, interface或enum
		for(; *s; s++) {
		      ^
0_0_26583210_3802\Main.java:33: 错误: 需要class, interface或enum
		for(; *s; s++) {
		          ^
0_0_26583210_3802\Main.java:35: 错误: 需要class, interface或enum
			if(t->ch[x] == NULL)
			^
0_0_26583210_3802\Main.java:37: 错误: 需要class, interface或enum
			t=t->ch[x];
			^
0_0_26583210_3802\Main.java:38: 错误: 需要class, interface或enum
		}
		^
0_0_26583210_3802\Main.java:40: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:43: 错误: 需要class, interface或enum
		que[q++] = root;
		^
0_0_26583210_3802\Main.java:44: 错误: 需要class, interface或enum
		while(p != q) {
		^
0_0_26583210_3802\Main.java:46: 错误: 需要class, interface或enum
			for(int i = 0; i < K; i++) {
			^
0_0_26583210_3802\Main.java:46: 错误: 需要class, interface或enum
			for(int i = 0; i < K; i++) {
			               ^
0_0_26583210_3802\Main.java:46: 错误: 需要class, interface或enum
			for(int i = 0; i < K; i++) {
			                      ^
0_0_26583210_3802\Main.java:49: 错误: 需要class, interface或enum
					que[q++] = t->ch[i];
					^
0_0_26583210_3802\Main.java:50: 错误: 需要class, interface或enum
				} 
				^
0_0_26583210_3802\Main.java:53: 错误: 需要class, interface或enum
			}
			^
0_0_26583210_3802\Main.java:58: 错误: 需要class, interface或enum
		Node* t = root;
		^
0_0_26583210_3802\Main.java:59: 错误: 需要class, interface或enum
		for(; *s; s++) {
		^
0_0_26583210_3802\Main.java:59: 错误: 需要class, interface或enum
		for(; *s; s++) {
		      ^
0_0_26583210_3802\Main.java:59: 错误: 需要class, interface或enum
		for(; *s; s++) {
		          ^
0_0_26583210_3802\Main.java:61: 错误: 需要class, interface或enum
			t = t->ch[x];
			^
0_0_26583210_3802\Main.java:62: 错误: 需要class, interface或enum
			for(Node* u = t; u->mc != -1; u = u->fail) {
			^
0_0_26583210_3802\Main.java:62: 错误: 需要class, interface或enum
			for(Node* u = t; u->mc != -1; u = u->fail) {
			                 ^
0_0_26583210_3802\Main.java:62: 错误: 需要class, interface或enum
			for(Node* u = t; u->mc != -1; u = u->fail) {
			                              ^
0_0_26583210_3802\Main.java:64: 错误: 需要class, interface或enum
				u->mc = -1;
				^
0_0_26583210_3802\Main.java:65: 错误: 需要class, interface或enum
			}
			^
0_0_26583210_3802\Main.java:68: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:70: 错误: 需要class, interface或enum
int n;
^
0_0_26583210_3802\Main.java:72: 错误: 需要class, interface或enum
int main()
^
0_0_26583210_3802\Main.java:75: 错误: 需要class, interface或enum
	char s[500], t[500];
	^
0_0_26583210_3802\Main.java:76: 错误: 需要class, interface或enum
	scanf("%d", &T);
	^
0_0_26583210_3802\Main.java:77: 错误: 需要class, interface或enum
	while(T--) {
	^
0_0_26583210_3802\Main.java:79: 错误: 需要class, interface或enum
		ac.clear();
		^
0_0_26583210_3802\Main.java:80: 错误: 需要class, interface或enum
		int maxl = 0;
		^
0_0_26583210_3802\Main.java:81: 错误: 需要class, interface或enum
		memset(t, 0, sizeof(t));
		^
0_0_26583210_3802\Main.java:82: 错误: 需要class, interface或enum
		for(int i = 0; i < n; i++) {
		^
0_0_26583210_3802\Main.java:82: 错误: 需要class, interface或enum
		for(int i = 0; i < n; i++) {
		               ^
0_0_26583210_3802\Main.java:82: 错误: 需要class, interface或enum
		for(int i = 0; i < n; i++) {
		                      ^
0_0_26583210_3802\Main.java:85: 错误: 需要class, interface或enum
			int len = strlen(s);
			^
0_0_26583210_3802\Main.java:86: 错误: 需要class, interface或enum
			if(len > maxl) {
			^
0_0_26583210_3802\Main.java:88: 错误: 需要class, interface或enum
				strcpy(t, s);
				^
0_0_26583210_3802\Main.java:89: 错误: 需要class, interface或enum
			}
			^
0_0_26583210_3802\Main.java:91: 错误: 需要class, interface或enum
		}		
		^
0_0_26583210_3802\Main.java:95: 错误: 需要class, interface或enum
		int ans = ac.run(t);
		^
0_0_26583210_3802\Main.java:98: 错误: 需要class, interface或enum
		if(ans == n)
		^
0_0_26583210_3802\Main.java:100: 错误: 需要class, interface或enum
		else
		^
0_0_26583210_3802\Main.java:102: 错误: 需要class, interface或enum
	}
	^
0_0_26583210_3802\Main.java:104: 错误: 需要class, interface或enum
}
^
68 个错误


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-16 20:45:23, Gzip enabled