0_0_26221336_9554.cpp: In function 'void insert_(char*)':
0_0_26221336_9554.cpp:19:12: error: 'tree' was not declared in this scope
if(!tree[root][id]) tree[root][id]=++tot;
^
0_0_26221336_9554.cpp:19:45: error: 'tot' was not declared in this scope
if(!tree[root][id]) tree[root][id]=++tot;
^
0_0_26221336_9554.cpp:20:8: error: 'sum' was not declared in this scope
sum[tree[root][id]]++;//记录节点访问次数
^
0_0_26221336_9554.cpp:20:12: error: 'tree' was not declared in this scope
sum[tree[root][id]]++;//记录节点访问次数
^
0_0_26221336_9554.cpp: In function 'int find_(char*)':
0_0_26221336_9554.cpp:32:13: error: 'tree' was not declared in this scope
if(!tree[root][id]) return 0;
^
0_0_26221336_9554.cpp:33:14: error: 'tree' was not declared in this scope
root=tree[root][id];
^
0_0_26221336_9554.cpp:35:12: error: 'sum' was not declared in this scope
return sum[root];//返回当前字符串结尾节点的访问次数,也就是作为前缀的出现次数
^
0_0_26221336_9554.cpp: At global scope:
0_0_26221336_9554.cpp:42:1: error: 'Trie' does not name a type
Trie ac;
^
0_0_26221336_9554.cpp: In function 'int main()':
0_0_26221336_9554.cpp:49:9: error: 'ac' was not declared in this scope
ac.init();
^
|