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_23276488_11943\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>  
^
0_0_23276488_11943\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>  
        ^
0_0_23276488_11943\Main.java:2: 错误: 非法字符: '#'
#include<string.h>  
^
0_0_23276488_11943\Main.java:3: 错误: 非法字符: '#'
#include<queue>  
^
0_0_23276488_11943\Main.java:4: 错误: 非法字符: '#'
#include<string>
^
0_0_23276488_11943\Main.java:5: 错误: 非法字符: '#'
#include<iostream>
^
0_0_23276488_11943\Main.java:6: 错误: 非法字符: '#'
#define maxlen 100005  
^
0_0_23276488_11943\Main.java:8: 错误: 需要class, interface或enum
int n;
^
0_0_23276488_11943\Main.java:9: 错误: 需要class, interface或enum
int nxt[maxlen][30],FAIL[maxlen],edd[maxlen],root,L;//nxt记录节点,在这里edd指针代表以当前节点为字符串尾的字符串个数   
^
0_0_23276488_11943\Main.java:10: 错误: 需要class, interface或enum
int mark[maxlen];
^
0_0_23276488_11943\Main.java:11: 错误: 需要class, interface或enum
int newnode()  
^
0_0_23276488_11943\Main.java:13: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
            ^
0_0_23276488_11943\Main.java:13: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
                 ^
0_0_23276488_11943\Main.java:15: 错误: 需要class, interface或enum
edd[L]=0;  
^
0_0_23276488_11943\Main.java:16: 错误: 需要class, interface或enum
mark[L]=0;
^
0_0_23276488_11943\Main.java:17: 错误: 需要class, interface或enum
return L++;  
^
0_0_23276488_11943\Main.java:18: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:22: 错误: 需要class, interface或enum
root=newnode();  
^
0_0_23276488_11943\Main.java:23: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
^
0_0_23276488_11943\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
            ^
0_0_23276488_11943\Main.java:28: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
                ^
0_0_23276488_11943\Main.java:31: 错误: 需要class, interface或enum
now=nxt[now][buf[i]-'a'];  
^
0_0_23276488_11943\Main.java:32: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:34: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:38: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
^
0_0_23276488_11943\Main.java:38: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
            ^
0_0_23276488_11943\Main.java:38: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
                 ^
0_0_23276488_11943\Main.java:41: 错误: 需要class, interface或enum
else                                 //若有连边则将节点加入队列 ,并将FAIL指针指向root   
^
0_0_23276488_11943\Main.java:44: 错误: 需要class, interface或enum
que.push(nxt[root][i]);  
^
0_0_23276488_11943\Main.java:45: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:50: 错误: 需要class, interface或enum
que.pop();  
^
0_0_23276488_11943\Main.java:51: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
^
0_0_23276488_11943\Main.java:51: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
            ^
0_0_23276488_11943\Main.java:51: 错误: 需要class, interface或enum
for(int i=0;i<26;i++)  
                 ^
0_0_23276488_11943\Main.java:55: 错误: 需要class, interface或enum
else                            //若有连边,则将儿子节点的FAIL指针指向当前节点FAIL指针指向相应字符接的节点   
^
0_0_23276488_11943\Main.java:58: 错误: 需要class, interface或enum
que.push(nxt[now][i]); //加入队列继续遍历   
^
0_0_23276488_11943\Main.java:59: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:66: 错误: 需要class, interface或enum
int res=0;  
^
0_0_23276488_11943\Main.java:67: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
^
0_0_23276488_11943\Main.java:67: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
            ^
0_0_23276488_11943\Main.java:67: 错误: 需要class, interface或enum
for(int i=0;i<l;i++)  
                ^
0_0_23276488_11943\Main.java:70: 错误: 需要class, interface或enum
int temp=now;  
^
0_0_23276488_11943\Main.java:71: 错误: 需要class, interface或enum
while(temp!=root&&mark[temp]==0)//根据题目要求改变形式   
^
0_0_23276488_11943\Main.java:74: 错误: 需要class, interface或enum
edd[temp]=0;  
^
0_0_23276488_11943\Main.java:75: 错误: 需要class, interface或enum
mark[temp]=1;
^
0_0_23276488_11943\Main.java:76: 错误: 需要class, interface或enum
temp=FAIL[temp];  
^
0_0_23276488_11943\Main.java:77: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:80: 错误: 需要class, interface或enum
}  
^
0_0_23276488_11943\Main.java:82: 错误: 需要class, interface或enum
string A[maxlen];
^
0_0_23276488_11943\Main.java:83: 错误: 需要class, interface或enum
int main()
^
0_0_23276488_11943\Main.java:86: 错误: 需要class, interface或enum
scanf("%d",&T);
^
0_0_23276488_11943\Main.java:87: 错误: 需要class, interface或enum
while(T--)
^
0_0_23276488_11943\Main.java:90: 错误: 需要class, interface或enum
init();
^
0_0_23276488_11943\Main.java:91: 错误: 需要class, interface或enum
int ma=0;
^
0_0_23276488_11943\Main.java:92: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
^
0_0_23276488_11943\Main.java:92: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
            ^
0_0_23276488_11943\Main.java:92: 错误: 需要class, interface或enum
for(int i=0;i<n;i++)
                ^
0_0_23276488_11943\Main.java:95: 错误: 需要class, interface或enum
int l=strlen(buf);
^
0_0_23276488_11943\Main.java:96: 错误: 需要class, interface或enum
if(ma<l)
^
0_0_23276488_11943\Main.java:99: 错误: 需要class, interface或enum
strcpy(ans,buf);	
^
0_0_23276488_11943\Main.java:100: 错误: 需要class, interface或enum
}
^
0_0_23276488_11943\Main.java:102: 错误: 需要class, interface或enum
}
^
0_0_23276488_11943\Main.java:104: 错误: 需要class, interface或enum
int sum=query(ans,ma);
^
0_0_23276488_11943\Main.java:105: 错误: 需要class, interface或enum
if(sum==n) puts(ans);
^
0_0_23276488_11943\Main.java:106: 错误: 需要class, interface或enum
else puts("No");
^
0_0_23276488_11943\Main.java:107: 错误: 需要class, interface或enum
}
^
67 个错误


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 14:29:58, Gzip enabled