0_0_21996523_703.cpp:6:1: error: 'usingnamespace' does not name a type
usingnamespace std;
^
0_0_21996523_703.cpp:8:1: error: 'constint' does not name a type
constint NS =128;
^
0_0_21996523_703.cpp:9:1: error: 'constint' does not name a type
constint MAXDL =256;
^
0_0_21996523_703.cpp:10:1: error: 'constint' does not name a type
constint MAXWL =10240;
^
0_0_21996523_703.cpp:11:1: error: 'constint' does not name a type
constint MAXN =100000;
^
0_0_21996523_703.cpp:12:1: error: 'constint' does not name a type
constint MAXD =512;
^
0_0_21996523_703.cpp:13:1: error: 'constint' does not name a type
constint MAXW =1024;
^
0_0_21996523_703.cpp:19:16: error: 'NS' was not declared in this scope
TRIE * son[NS];
^
0_0_21996523_703.cpp: In constructor 'TRIE::TRIE()':
0_0_21996523_703.cpp:24:19: error: 'NS' was not declared in this scope
for (int i =0;i < NS;i++)
^
0_0_21996523_703.cpp:25:13: error: 'son' was not declared in this scope
son[i] = NULL;
^
0_0_21996523_703.cpp: At global scope:
0_0_21996523_703.cpp:29:14: error: 'MAXN' was not declared in this scope
TRIE * queue[MAXN];
^
0_0_21996523_703.cpp:31:10: error: 'MAXW' was not declared in this scope
bool vis[MAXW][MAXD];
^
0_0_21996523_703.cpp:31:16: error: 'MAXD' was not declared in this scope
bool vis[MAXW][MAXD];
^
0_0_21996523_703.cpp:33:10: error: 'MAXWL' was not declared in this scope
char web[MAXWL];
^
0_0_21996523_703.cpp: In function 'void TrieInsert(char*, int, TRIE*)':
0_0_21996523_703.cpp:46:10: error: 'struct TRIE' has no member named 'son'
if (tmp->son[idx] == NULL) tmp->son[idx] =new TRIE();
^
0_0_21996523_703.cpp:46:33: error: 'struct TRIE' has no member named 'son'
if (tmp->son[idx] == NULL) tmp->son[idx] =new TRIE();
^
0_0_21996523_703.cpp:47:20: error: 'struct TRIE' has no member named 'son'
tmp = tmp->son[idx];
^
0_0_21996523_703.cpp: In function 'void getFail(TRIE*)':
0_0_21996523_703.cpp:57:5: error: 'queue' was not declared in this scope
queue[0] = root;
^
0_0_21996523_703.cpp:66:19: error: 'NS' was not declared in this scope
for (int i =0;i < NS;i++)
^
0_0_21996523_703.cpp:67:10: error: 'struct TRIE' has no member named 'son'
if (tmp->son[i])
^
0_0_21996523_703.cpp:69:23: error: 'struct TRIE' has no member named 'son'
if (tmp == root) tmp->son[i]->fail = root;
^
0_0_21996523_703.cpp:75:8: error: 'struct TRIE' has no member named 'son'
if (p->son[i])
^
0_0_21996523_703.cpp:77:34: error: 'struct TRIE' has no member named 'son'
tmp->son[i]->fail = p->son[i];
^
0_0_21996523_703.cpp:77:52: error: 'struct TRIE' has no member named 'son'
tmp->son[i]->fail = p->son[i];
^
0_0_21996523_703.cpp:82:21: error: 'struct TRIE' has no member named 'son'
if (p == NULL) tmp->son[i]->fail = root;
^
0_0_21996523_703.cpp:86:34: error: 'struct TRIE' has no member named 'son'
queue[qe] = tmp->son[i];
^
0_0_21996523_703.cpp: In function 'bool TrieFind(char*, int, TRIE*)':
0_0_21996523_703.cpp:95:5: error: 'vector' was not declared in this scope
vector<int> bd;
^
0_0_21996523_703.cpp:95:5: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_21996523_703.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_21996523_703.cpp:95:12: error: expected primary-expression before 'int'
vector<int> bd;
^
0_0_21996523_703.cpp:99:5: error: 'bd' was not declared in this scope
bd.clear();
^
0_0_21996523_703.cpp:104:13: error: 'struct TRIE' has no member named 'son'
while (tmp->son[idx] == NULL && tmp != root) tmp = tmp->fail;
^
0_0_21996523_703.cpp:105:20: error: 'struct TRIE' has no member named 'son'
tmp = tmp->son[idx] == NULL ? root : tmp->son[idx];
^
0_0_21996523_703.cpp:105:51: error: 'struct TRIE' has no member named 'son'
tmp = tmp->son[idx] == NULL ? root : tmp->son[idx];
^
0_0_21996523_703.cpp:107:37: error: 'vis' was not declared in this scope
while (p != root && p->lable !=-1&&!vis[id][p->lable])
^
0_0_21996523_703.cpp:115:20: error: 'returnfalse' was not declared in this scope
if (bd.size() ==0) returnfalse;
^
0_0_21996523_703.cpp:119:29: error: 'sort' was not declared in this scope
sort(bd.begin(),bd.end());
^
0_0_21996523_703.cpp:119:29: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_21996523_703.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note: 'std::sort'
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
0_0_21996523_703.cpp: In function 'void TrieDelete(TRIE*)':
0_0_21996523_703.cpp:132:19: error: 'NS' was not declared in this scope
for (int i =0;i < NS;i++)
^
0_0_21996523_703.cpp:133:11: error: 'struct TRIE' has no member named 'son'
if (root->son[i])
^
0_0_21996523_703.cpp:134:30: error: 'struct TRIE' has no member named 'son'
TrieDelete(root->son[i]);
^
0_0_21996523_703.cpp: In function 'int main()':
0_0_21996523_703.cpp:143:11: error: 'MAXDL' was not declared in this scope
char word[MAXDL];
^
0_0_21996523_703.cpp:148:16: error: 'vis' was not declared in this scope
memset(vis,false,sizeof(vis));
^
0_0_21996523_703.cpp:154:24: error: 'word' was not declared in this scope
scanf("%s",word);
^
0_0_21996523_703.cpp:163:24: error: 'web' was not declared in this scope
scanf("%s",web);
^
0_0_21996523_703.cpp:170:1: error: 'return0' was not declared in this scope
return0;
^
|