0_0_21744210_18623.cpp: In function 'void Trie_insert(std::string)':
0_0_21744210_18623.cpp:17:5: error: 're' was not declared in this scope
re int num(0), len = str.size(), root = 1;
^
0_0_21744210_18623.cpp:18:25: error: 'len' was not declared in this scope
for (int i = 0; i < len; ++i) {
^
0_0_21744210_18623.cpp:19:9: error: 'num' was not declared in this scope
num = str[i] - 'a';
^
0_0_21744210_18623.cpp:20:14: error: 'root' was not declared in this scope
if(a[root].next[num] == 0) a[root].next[num] = ++top;
^
0_0_21744210_18623.cpp:21:9: error: 'root' was not declared in this scope
root = a[root].next[num];
^
0_0_21744210_18623.cpp:24:7: error: 'root' was not declared in this scope
a[root].exist = true;
^
0_0_21744210_18623.cpp: In function 'int Trie_search(std::string)':
0_0_21744210_18623.cpp:27:5: error: 're' was not declared in this scope
re int num(0), len = str.size(), root = 1;
^
0_0_21744210_18623.cpp:28:26: error: 'len' was not declared in this scope
for (int i = 0 ; i < len; ++i) {
^
0_0_21744210_18623.cpp:29:9: error: 'num' was not declared in this scope
num = str[i] - 'a';
^
0_0_21744210_18623.cpp:30:9: error: 'root' was not declared in this scope
root = a[root].next[num];
^
0_0_21744210_18623.cpp:32:14: error: 'root' was not declared in this scope
return a[root].count;
^
|