0_0_33774044_31789.cpp: In function 'void find_index(int, int, int&, int&)':
0_0_33774044_31789.cpp:87:1: error: expected primary-expression before '.' token
.
^
0_0_33774044_31789.cpp:88:1: error: expected unqualified-id before 'while'
while (l <= r) {
^
0_0_33774044_31789.cpp: At global scope:
0_0_33774044_31789.cpp:133:11: error: expected ';' at end of member declaration
void init()
^
0_0_33774044_31789.cpp:134:1: error: 'cnt' does not name a type
cnt = 0;
^
0_0_33774044_31789.cpp:135:8: error: 'next' is not a type
memset(next, 0, sizeof(next));
^
0_0_33774044_31789.cpp:135:14: error: expected identifier before numeric constant
memset(next, 0, sizeof(next));
^
0_0_33774044_31789.cpp:135:14: error: expected ',' or '...' before numeric constant
0_0_33774044_31789.cpp:136:1: error: expected ';' after struct definition
}
^
0_0_33774044_31789.cpp: In function 'void init()':
0_0_33774044_31789.cpp:139:1: error: 'rt' was not declared in this scope
rt = tot = cnt = 0;
^
0_0_33774044_31789.cpp:139:6: error: 'tot' was not declared in this scope
rt = tot = cnt = 0;
^
0_0_33774044_31789.cpp: In function 'void insert(char*)':
0_0_33774044_31789.cpp:146:13: error: 'struct TrieTree' has no member named 'next'
if (!tb[rt].next[t]) {
^
0_0_33774044_31789.cpp:147:6: error: 'tot' was not declared in this scope
tb[++tot].init();
^
0_0_33774044_31789.cpp:148:8: error: 'struct TrieTree' has no member named 'next'
tb[rt].next[t] = tot;
^
0_0_33774044_31789.cpp:150:13: error: 'struct TrieTree' has no member named 'next'
rt = tb[rt].next[t];
^
0_0_33774044_31789.cpp: In function 'void dfs(int, int, int, int)':
0_0_33774044_31789.cpp:161:13: error: 'struct TrieTree' has no member named 'next'
if (!tb[rt].next[t]) {
^
0_0_33774044_31789.cpp:162:6: error: 'tot' was not declared in this scope
tb[++tot].init();
^
0_0_33774044_31789.cpp:163:8: error: 'struct TrieTree' has no member named 'next'
tb[rt].next[t] = tot;
^
0_0_33774044_31789.cpp:165:15: error: 'struct TrieTree' has no member named 'next'
dfs(v, tb[rt].next[t], t, u);
^
0_0_33774044_31789.cpp: In function 'void CalRank(int, int)':
0_0_33774044_31789.cpp:173:12: error: 'struct TrieTree' has no member named 'next'
if (tb[rt].next[i])
^
0_0_33774044_31789.cpp:174:16: error: 'struct TrieTree' has no member named 'next'
CalRank(tb[rt].next[i], rt);
^
0_0_33774044_31789.cpp: In function 'void go(int, int, int)':
0_0_33774044_31789.cpp:185:14: error: 'struct TrieTree' has no member named 'next'
go(v, tb[rt].next[t], u);
^
0_0_33774044_31789.cpp: At global scope:
0_0_33774044_31789.cpp:188:1: error: expected declaration before '}' token
} Trie;
^
|