0_0_26909816_7340.cpp:8:17: error: array bound is not an integer constant before ']' token
int nxt[MAXN][26], fail[MAXN], end[MAXN];
^
0_0_26909816_7340.cpp:8:33: error: array bound is not an integer constant before ']' token
int nxt[MAXN][26], fail[MAXN], end[MAXN];
^
0_0_26909816_7340.cpp:8:44: error: array bound is not an integer constant before ']' token
int nxt[MAXN][26], fail[MAXN], end[MAXN];
^
0_0_26909816_7340.cpp: In member function 'int Trie::newnode()':
0_0_26909816_7340.cpp:12:13: error: 'nxt' was not declared in this scope
nxt[L][i] = -1;
^
0_0_26909816_7340.cpp:13:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[L++] = 0;
^
0_0_26909816_7340.cpp: In member function 'void Trie::insert(char*)':
0_0_26909816_7340.cpp:24:17: error: 'nxt' was not declared in this scope
if (nxt[now][buf[i]-'a'] == -1)
^
0_0_26909816_7340.cpp:26:19: error: 'nxt' was not declared in this scope
now = nxt[now][buf[i]-'a'];
^
0_0_26909816_7340.cpp:28:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[now]++;
^
0_0_26909816_7340.cpp: In member function 'void Trie::build()':
0_0_26909816_7340.cpp:32:9: error: 'fail' was not declared in this scope
fail[root] = root;
^
0_0_26909816_7340.cpp:34:17: error: 'nxt' was not declared in this scope
if (nxt[root][i] == -1)
^
0_0_26909816_7340.cpp:44:21: error: 'nxt' was not declared in this scope
if (nxt[now][i] == -1)
^
0_0_26909816_7340.cpp: In member function 'int Trie::query(char*)':
0_0_26909816_7340.cpp:57:19: error: 'nxt' was not declared in this scope
now = nxt[now][buf[i]-'a'];
^
0_0_26909816_7340.cpp:60:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
res += end[temp];
^
0_0_26909816_7340.cpp:61:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[temp] = 0;
^
0_0_26909816_7340.cpp:62:24: error: 'fail' was not declared in this scope
temp = fail[temp];
^
|