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_22057904_27007.cpp:4:23: error: expected primary-expression before ';' token
 const int TRIE_SIZE = ; // Trie树大小
                       ^
0_0_22057904_27007.cpp:12:35: error: size of array 'nxt' is not an integral constant-expression
   int nxt[TRIE_SIZE][CHAR_SET_SIZE]; // Trie树
                                   ^
0_0_22057904_27007.cpp:13:21: error: size of array 'fail' is not an integral constant-expression
   int fail[TRIE_SIZE];
                     ^
0_0_22057904_27007.cpp:14:20: error: size of array 'num' is not an integral constant-expression
   int num[TRIE_SIZE]; // 此节点若是单词的结尾,就+1
                    ^
0_0_22057904_27007.cpp:15:3: error: 'queue' does not name a type
   queue<int> que; // 用于构建fail指针
   ^
0_0_22057904_27007.cpp: In member function 'int Aho::newNode()':
0_0_22057904_27007.cpp:19:42: error: 'memset' was not declared in this scope
     memset(nxt[size], 0, sizeof nxt[size]);
                                          ^
0_0_22057904_27007.cpp: In member function 'void Aho::build()':
0_0_22057904_27007.cpp:46:13: error: 'que' was not declared in this scope
     while (!que.empty()) que.pop();
             ^
0_0_22057904_27007.cpp:53:9: error: 'que' was not declared in this scope
         que.push(nxt[root][i]);
         ^
0_0_22057904_27007.cpp:56:13: error: 'que' was not declared in this scope
     while (!que.empty()) {
             ^


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-22 16:11:40, Gzip enabled