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_16055281_29825\Main.java:24: 错误: 非法字符: '#'
#include <iostream>
^
0_0_16055281_29825\Main.java:24: 错误: 需要class, interface或enum
#include <iostream>
         ^
0_0_16055281_29825\Main.java:25: 错误: 非法字符: '#'
#include <cstring>
^
0_0_16055281_29825\Main.java:27: 错误: 需要class, interface或enum
int const   N =500010;
^
0_0_16055281_29825\Main.java:28: 错误: 需要class, interface或enum
char str[1000010], keyword[51];
^
0_0_16055281_29825\Main.java:29: 错误: 非法字符: '#'
#include <queue>
^
0_0_16055281_29825\Main.java:29: 错误: 需要class, interface或enum
#include <queue>
         ^
0_0_16055281_29825\Main.java:34: 错误: 需要class, interface或enum
    Node* next[26];
    ^
0_0_16055281_29825\Main.java:35: 错误: 需要class, interface或enum
    int count ;
    ^
0_0_16055281_29825\Main.java:36: 错误: 需要class, interface或enum
    Node(){
    ^
0_0_16055281_29825\Main.java:37: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++){
                    ^
0_0_16055281_29825\Main.java:37: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++){
                         ^
0_0_16055281_29825\Main.java:39: 错误: 需要class, interface或enum
        }
        ^
0_0_16055281_29825\Main.java:41: 错误: 需要class, interface或enum
        fail = NULL;
        ^
0_0_16055281_29825\Main.java:42: 错误: 需要class, interface或enum
    }
    ^
0_0_16055281_29825\Main.java:44: 错误: 需要class, interface或enum
Node * root;
^
0_0_16055281_29825\Main.java:45: 错误: 需要class, interface或enum
int head, tail;
^
0_0_16055281_29825\Main.java:50: 错误: 需要class, interface或enum
void init(){
^
0_0_16055281_29825\Main.java:52: 错误: 需要class, interface或enum
    root  =  new Node();
    ^
0_0_16055281_29825\Main.java:53: 错误: 需要class, interface或enum
}
^
0_0_16055281_29825\Main.java:57: 错误: 需要class, interface或enum
    len = strlen(str);
    ^
0_0_16055281_29825\Main.java:58: 错误: 需要class, interface或enum
    Node *p = root;
    ^
0_0_16055281_29825\Main.java:59: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
    ^
0_0_16055281_29825\Main.java:59: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
                ^
0_0_16055281_29825\Main.java:59: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
                      ^
0_0_16055281_29825\Main.java:61: 错误: 需要class, interface或enum
        if(p->next[tmp] ==NULL){
        ^
0_0_16055281_29825\Main.java:63: 错误: 需要class, interface或enum
        }
        ^
0_0_16055281_29825\Main.java:65: 错误: 需要class, interface或enum
    }
    ^
0_0_16055281_29825\Main.java:67: 错误: 需要class, interface或enum
}
^
0_0_16055281_29825\Main.java:71: 错误: 需要class, interface或enum
    while(head!=tail){
    ^
0_0_16055281_29825\Main.java:73: 错误: 需要class, interface或enum
        Node* tmp = NULL;
        ^
0_0_16055281_29825\Main.java:74: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++){
        ^
0_0_16055281_29825\Main.java:74: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++){
                    ^
0_0_16055281_29825\Main.java:74: 错误: 需要class, interface或enum
        for(int i=0;i<26;i++){
                         ^
0_0_16055281_29825\Main.java:78: 错误: 需要class, interface或enum
                }
                ^
0_0_16055281_29825\Main.java:81: 错误: 需要class, interface或enum
                    while(tmp!=NULL){
                    ^
0_0_16055281_29825\Main.java:84: 错误: 需要class, interface或enum
                            break;
                            ^
0_0_16055281_29825\Main.java:85: 错误: 需要class, interface或enum
                        }
                        ^
0_0_16055281_29825\Main.java:87: 错误: 需要class, interface或enum
                    }
                    ^
0_0_16055281_29825\Main.java:90: 错误: 需要class, interface或enum
                    }
                    ^
0_0_16055281_29825\Main.java:93: 错误: 需要class, interface或enum
            }
            ^
0_0_16055281_29825\Main.java:100: 错误: 需要class, interface或enum
    int  res ,len;
    ^
0_0_16055281_29825\Main.java:101: 错误: 需要class, interface或enum
    res= 0 ;
    ^
0_0_16055281_29825\Main.java:102: 错误: 需要class, interface或enum
    len= strlen(str);
    ^
0_0_16055281_29825\Main.java:103: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
    ^
0_0_16055281_29825\Main.java:103: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
                ^
0_0_16055281_29825\Main.java:103: 错误: 需要class, interface或enum
    for(int i=0;i<len;i++){
                      ^
0_0_16055281_29825\Main.java:105: 错误: 需要class, interface或enum
        while(p->next[Index]==NULL&&p!=root){
        ^
0_0_16055281_29825\Main.java:107: 错误: 需要class, interface或enum
        }
        ^
0_0_16055281_29825\Main.java:109: 错误: 需要class, interface或enum
        if(p==NULL)
        ^
0_0_16055281_29825\Main.java:111: 错误: 需要class, interface或enum
        Node* tmp = p;
        ^
0_0_16055281_29825\Main.java:112: 错误: 需要class, interface或enum
        while( tmp!=root && tmp->count !=-1){
        ^
0_0_16055281_29825\Main.java:114: 错误: 需要class, interface或enum
            tmp->count =-1;
            ^
0_0_16055281_29825\Main.java:115: 错误: 需要class, interface或enum
            tmp= tmp->fail;
            ^
0_0_16055281_29825\Main.java:116: 错误: 需要class, interface或enum
        }
        ^
0_0_16055281_29825\Main.java:120: 错误: 需要class, interface或enum
}
^
0_0_16055281_29825\Main.java:124: 错误: 需要class, interface或enum
    cin>>T;
    ^
0_0_16055281_29825\Main.java:125: 错误: 需要class, interface或enum
    while(T--){
    ^
0_0_16055281_29825\Main.java:127: 错误: 需要class, interface或enum
        int num;
        ^
0_0_16055281_29825\Main.java:128: 错误: 需要class, interface或enum
        cin>>num;
        ^
0_0_16055281_29825\Main.java:129: 错误: 需要class, interface或enum
        getchar();
        ^
0_0_16055281_29825\Main.java:131: 错误: 需要class, interface或enum
        for(int i=0;i<num;i++){
        ^
0_0_16055281_29825\Main.java:131: 错误: 需要class, interface或enum
        for(int i=0;i<num;i++){
                    ^
0_0_16055281_29825\Main.java:131: 错误: 需要class, interface或enum
        for(int i=0;i<num;i++){
                          ^
0_0_16055281_29825\Main.java:134: 错误: 需要class, interface或enum
            Insert(keyword);
            ^
0_0_16055281_29825\Main.java:135: 错误: 需要class, interface或enum
        }
        ^
0_0_16055281_29825\Main.java:137: 错误: 需要class, interface或enum
        scanf("%s",str);
        ^
0_0_16055281_29825\Main.java:138: 错误: 需要class, interface或enum
        printf("%d\n",query(str));
        ^
0_0_16055281_29825\Main.java:139: 错误: 需要class, interface或enum
    }
    ^
69 个错误


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 13:44:40, Gzip enabled