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_22258042_29433.cpp: In constructor 'Trie::Trie()':
0_0_22258042_29433.cpp:10:14: error: 'NULL' was not declared in this scope
    next[i] = NULL;
              ^
0_0_22258042_29433.cpp: In function 'void Insert(char*)':
0_0_22258042_29433.cpp:23:33: error: 'NULL' was not declared in this scope
   if (p->next[word[i] - 'a'] == NULL)    //如果该字符没有对应的节点
                                 ^
0_0_22258042_29433.cpp: In function 'int Find(char*)':
0_0_22258042_29433.cpp:35:33: error: 'NULL' was not declared in this scope
   if (p->next[word[i] - 'a'] == NULL)
                                 ^
0_0_22258042_29433.cpp: In function 'int main()':
0_0_22258042_29433.cpp:45:9: error: 'cin' was not declared in this scope
  while (cin.getline(word, 12)) 
         ^
0_0_22258042_29433.cpp:47:18: error: 'strlen' was not declared in this scope
   if (strlen(word) == 0 || word[0] == ' ')    //如果读入字符串的长度为0或者是空格,说明读入的是空行
                  ^
0_0_22258042_29433.cpp:51:25: error: 'scanf' was not declared in this scope
  while (scanf("%s", word) != EOF)
                         ^
0_0_22258042_29433.cpp:51:30: error: 'EOF' was not declared in this scope
  while (scanf("%s", word) != EOF)
                              ^
0_0_22258042_29433.cpp:53:28: error: 'printf' was not declared in this scope
   printf("%d\n", Find(word));    //返回word为前缀的单词的数量
                            ^


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-27 02:48:37, Gzip enabled