0_0_31566346_342.cpp:13:14: error: 'SIZE' was not declared in this scope
int next[SIZE][26],fail[SIZE],end[SIZE],Q[SIZE*26];
^
0_0_31566346_342.cpp:13:29: error: 'SIZE' was not declared in this scope
int next[SIZE][26],fail[SIZE],end[SIZE],Q[SIZE*26];
^
0_0_31566346_342.cpp:13:39: error: 'SIZE' was not declared in this scope
int next[SIZE][26],fail[SIZE],end[SIZE],Q[SIZE*26];
^
0_0_31566346_342.cpp:13:47: error: 'SIZE' was not declared in this scope
int next[SIZE][26],fail[SIZE],end[SIZE],Q[SIZE*26];
^
0_0_31566346_342.cpp: In member function 'int AC::newNode()':
0_0_31566346_342.cpp:25:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[cnt][i]=-1;
^
0_0_31566346_342.cpp:26:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[cnt++]=0;
^
0_0_31566346_342.cpp: In member function 'void AC::Insert(char*, int)':
0_0_31566346_342.cpp:37:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(next[now][k]==-1)
^
0_0_31566346_342.cpp:38:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[now][k]=newNode();
^
0_0_31566346_342.cpp:39:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
now=next[now][k];
^
0_0_31566346_342.cpp:41:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[now]|=B(id);///这个单词是否存在
^
0_0_31566346_342.cpp:41:23: error: 'B' was not declared in this scope
end[now]|=B(id);///这个单词是否存在
^
0_0_31566346_342.cpp: In member function 'void AC::build()':
0_0_31566346_342.cpp:46:9: error: 'fail' was not declared in this scope
fail[root]=root;
^
0_0_31566346_342.cpp:52:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(next[now][i]==-1)
^
0_0_31566346_342.cpp:53:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[now][i]=root;
^
0_0_31566346_342.cpp:56:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fail[next[now][i]]=root;
^
0_0_31566346_342.cpp:57:17: error: 'Q' was not declared in this scope
Q[rear++]=next[now][i];
^
0_0_31566346_342.cpp:57:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
Q[rear++]=next[now][i];
^
0_0_31566346_342.cpp:62:17: error: 'Q' was not declared in this scope
now=Q[front++];
^
0_0_31566346_342.cpp:63:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
end[now]|=end[fail[now]];///重要
^
0_0_31566346_342.cpp:66:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(next[now][i]==-1)
^
0_0_31566346_342.cpp:67:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[now][i]=next[fail[now]][i];
^
0_0_31566346_342.cpp:70:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fail[next[now][i]]=next[fail[now]][i];
^
0_0_31566346_342.cpp:71:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
Q[rear++]=next[now][i];
^
0_0_31566346_342.cpp: In member function 'int AC::DP(int, int, int)':
0_0_31566346_342.cpp:85:21: error: 'B' was not declared in this scope
int full=B(m)-1;
^
0_0_31566346_342.cpp:90:21: error: 'dp' was not declared in this scope
dp[i][j][s]=0;
^
0_0_31566346_342.cpp:91:9: error: 'dp' was not declared in this scope
dp[0][0][0]=1;
^
0_0_31566346_342.cpp:101:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
int k=next[j][t];
^
0_0_31566346_342.cpp:102:39: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
int st=s|end[k];
^
0_0_31566346_342.cpp:110:16: error: 'num' was not declared in this scope
if(num[s]>=p)
^
0_0_31566346_342.cpp: In function 'int main()':
0_0_31566346_342.cpp:154:40: error: 'struct AC' has no member named 'next'
int t = ac.next[j][p];
^
0_0_31566346_342.cpp:155:46: error: 'struct AC' has no member named 'end'
int st = ss | ac.end[t];
^
|