0_0_26134991_2472.cpp: In function 'void insert()':
0_0_26134991_2472.cpp:19:9: error: 'root' was not declared in this scope
root=trie[rt][id];
^
0_0_26134991_2472.cpp: In function 'int search()':
0_0_26134991_2472.cpp:30:9: error: 'root' was not declared in this scope
root=trie[rt][id];
^
0_0_26134991_2472.cpp:32:16: error: 'root' was not declared in this scope
return sum[root];//因为前缀后移了一个保存,所以此时的sum[root]就是要求的前缀出现的次数
^
|