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_35264322_32392\Main.java:2: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_35264322_32392\Main.java:2: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_35264322_32392\Main.java:4: 错误: 需要class, interface或enum
const int N=2021;
^
0_0_35264322_32392\Main.java:5: 错误: 需要class, interface或enum
int Next[N],flag;
^
0_0_35264322_32392\Main.java:6: 错误: 需要class, interface或enum
void get_Next(string p,int Next[]){
^
0_0_35264322_32392\Main.java:8: 错误: 需要class, interface或enum
	Next[0]=-1;
	^
0_0_35264322_32392\Main.java:9: 错误: 需要class, interface或enum
	while(i<len){
	^
0_0_35264322_32392\Main.java:12: 错误: 需要class, interface或enum
			j++;
			^
0_0_35264322_32392\Main.java:13: 错误: 需要class, interface或enum
			if(p[i]!=p[j])Next[i]=j;
			^
0_0_35264322_32392\Main.java:14: 错误: 需要class, interface或enum
			else Next[i]=Next[j];	//(Next[i]=j;)的优化
			^
0_0_35264322_32392\Main.java:15: 错误: 需要class, interface或enum
		}else j=Next[j];
		^
0_0_35264322_32392\Main.java:16: 错误: 需要class, interface或enum
	}
	^
0_0_35264322_32392\Main.java:20: 错误: 需要class, interface或enum
	int i=0,j=0;
	^
0_0_35264322_32392\Main.java:21: 错误: 需要class, interface或enum
	int t_len=t.length(),p_len=p.length();
	^
0_0_35264322_32392\Main.java:22: 错误: 需要class, interface或enum
	while(i<t_len&&j<p_len){
	^
0_0_35264322_32392\Main.java:25: 错误: 需要class, interface或enum
			j++;
			^
0_0_35264322_32392\Main.java:26: 错误: 需要class, interface或enum
		}else j=Next[j];
		^
0_0_35264322_32392\Main.java:27: 错误: 需要class, interface或enum
		if(j==p_len){
		^
0_0_35264322_32392\Main.java:30: 错误: 需要class, interface或enum
			flag=1;
			^
0_0_35264322_32392\Main.java:31: 错误: 需要class, interface或enum
			j=Next[j];	//继续匹配
			^
0_0_35264322_32392\Main.java:32: 错误: 需要class, interface或enum
		}
		^
0_0_35264322_32392\Main.java:35: 错误: 需要class, interface或enum
}
^
0_0_35264322_32392\Main.java:37: 错误: 需要class, interface或enum
string s[507];
^
0_0_35264322_32392\Main.java:38: 错误: 需要class, interface或enum
int main(){
^
0_0_35264322_32392\Main.java:39: 错误: 需要class, interface或enum
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	                        ^
0_0_35264322_32392\Main.java:39: 错误: 需要class, interface或enum
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	                                   ^
0_0_35264322_32392\Main.java:40: 错误: 需要class, interface或enum
	cin>>t;
	^
0_0_35264322_32392\Main.java:41: 错误: 需要class, interface或enum
	for(int T=1;T<=t;++T){
	^
0_0_35264322_32392\Main.java:41: 错误: 需要class, interface或enum
	for(int T=1;T<=t;++T){
	            ^
0_0_35264322_32392\Main.java:41: 错误: 需要class, interface或enum
	for(int T=1;T<=t;++T){
	                 ^
0_0_35264322_32392\Main.java:43: 错误: 需要class, interface或enum
		for(int i=1;i<=n;++i)cin>>s[i];
		^
0_0_35264322_32392\Main.java:43: 错误: 需要class, interface或enum
		for(int i=1;i<=n;++i)cin>>s[i];
		            ^
0_0_35264322_32392\Main.java:43: 错误: 需要class, interface或enum
		for(int i=1;i<=n;++i)cin>>s[i];
		                 ^
0_0_35264322_32392\Main.java:44: 错误: 需要class, interface或enum
		int ans=-1,j=n,i=n-1,flag=0;
		^
0_0_35264322_32392\Main.java:45: 错误: 需要class, interface或enum
		while(i>=1&&j<=n){
		^
0_0_35264322_32392\Main.java:47: 错误: 需要class, interface或enum
			if(k!=-1){
			^
0_0_35264322_32392\Main.java:49: 错误: 需要class, interface或enum
				if(!flag)j--;
				^
0_0_35264322_32392\Main.java:50: 错误: 需要class, interface或enum
			}else{
			^
0_0_35264322_32392\Main.java:52: 错误: 需要class, interface或enum
				j++;flag=1;
				^
0_0_35264322_32392\Main.java:52: 错误: 需要class, interface或enum
				j++;flag=1;
				    ^
0_0_35264322_32392\Main.java:53: 错误: 需要class, interface或enum
			}
			^
0_0_35264322_32392\Main.java:56: 错误: 需要class, interface或enum
	}
	^
42 个错误


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-17 09:48:30, Gzip enabled