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_23721620_26430\Main.java:2: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_23721620_26430\Main.java:2: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_23721620_26430\Main.java:3: 错误: 非法字符: '#'
#include<string.h>
^
0_0_23721620_26430\Main.java:6: 错误: 需要class, interface或enum
    node *next[27];
    ^
0_0_23721620_26430\Main.java:7: 错误: 需要class, interface或enum
    node(){
    ^
0_0_23721620_26430\Main.java:9: 错误: 需要class, interface或enum
    memset(next,0,sizeof(next));
    ^
0_0_23721620_26430\Main.java:10: 错误: 需要class, interface或enum
    }
    ^
0_0_23721620_26430\Main.java:12: 错误: 需要class, interface或enum
void insert(node *root,char s[])
^
0_0_23721620_26430\Main.java:15: 错误: 需要class, interface或enum
    node *p=root;
    ^
0_0_23721620_26430\Main.java:16: 错误: 需要class, interface或enum
    while(s[i]){
    ^
0_0_23721620_26430\Main.java:18: 错误: 需要class, interface或enum
        if(p->next[j]==NULL) p->next[j]=new node();
        ^
0_0_23721620_26430\Main.java:19: 错误: 需要class, interface或enum
        p=p->next[j]; 
        ^
0_0_23721620_26430\Main.java:20: 错误: 需要class, interface或enum
        p->cnt+=1;
        ^
0_0_23721620_26430\Main.java:22: 错误: 需要class, interface或enum
    }
    ^
0_0_23721620_26430\Main.java:27: 错误: 需要class, interface或enum
    node *p=root;
    ^
0_0_23721620_26430\Main.java:28: 错误: 需要class, interface或enum
    int flag=0;
    ^
0_0_23721620_26430\Main.java:29: 错误: 需要class, interface或enum
    while(s[i]){
    ^
0_0_23721620_26430\Main.java:31: 错误: 需要class, interface或enum
        if(p->next[j]==NULL){
        ^
0_0_23721620_26430\Main.java:32: 错误: 需要class, interface或enum
            flag=0;break;
                   ^
0_0_23721620_26430\Main.java:33: 错误: 需要class, interface或enum
        }
        ^
0_0_23721620_26430\Main.java:35: 错误: 需要class, interface或enum
        flag=p->cnt;
        ^
0_0_23721620_26430\Main.java:36: 错误: 需要class, interface或enum
    }
    ^
0_0_23721620_26430\Main.java:38: 错误: 需要class, interface或enum
}
^
0_0_23721620_26430\Main.java:42: 错误: 需要class, interface或enum
    char word[10];
    ^
0_0_23721620_26430\Main.java:43: 错误: 需要class, interface或enum
    char cur[10];
    ^
0_0_23721620_26430\Main.java:46: 错误: 需要class, interface或enum
    while(gets(word)){
    ^
0_0_23721620_26430\Main.java:48: 错误: 需要class, interface或enum
        insert(root,word);
        ^
0_0_23721620_26430\Main.java:49: 错误: 需要class, interface或enum
    }
    ^
0_0_23721620_26430\Main.java:52: 错误: 需要class, interface或enum
    }
    ^
0_0_23721620_26430\Main.java:54: 错误: 需要class, interface或enum
}
^
30 个错误


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-30 08:55:33, Gzip enabled