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()) {
^
|