0_0_33464511_13521.cpp:9:11: error: 'MAX' was not declared in this scope
Trie tree[MAX];
^
0_0_33464511_13521.cpp: In function 'void Clear()':
0_0_33464511_13521.cpp:14:5: error: 'tree' was not declared in this scope
tree[nodes].cnt = 0;
^
0_0_33464511_13521.cpp: In function 'void insert_word(int)':
0_0_33464511_13521.cpp:33:16: error: 'tree' was not declared in this scope
if(tree[cur].ch[c] == -1)
^
0_0_33464511_13521.cpp:35:19: error: 'tree' was not declared in this scope
cur = tree[cur].ch[c];
^
0_0_33464511_13521.cpp: In function 'int search_it()':
0_0_33464511_13521.cpp:50:12: error: 'tree' was not declared in this scope
if(tree[cur].ch[id]==-1)
^
0_0_33464511_13521.cpp:54:14: error: 'tree' was not declared in this scope
cur= tree[cur].ch[id];
^
0_0_33464511_13521.cpp:56:12: error: 'tree' was not declared in this scope
return tree[cur].cnt;
^
|