0_0_36856088_3667.cpp:6:12: error: 'N' was not declared in this scope
int tr[N][26],fail[N],cnt=0,e[N];
^
0_0_36856088_3667.cpp:6:24: error: 'N' was not declared in this scope
int tr[N][26],fail[N],cnt=0,e[N];
^
0_0_36856088_3667.cpp:6:35: error: 'N' was not declared in this scope
int tr[N][26],fail[N],cnt=0,e[N];
^
0_0_36856088_3667.cpp: In member function 'void AC::insert(char*)':
0_0_36856088_3667.cpp:11:16: error: 'tr' was not declared in this scope
if(tr[p][n]==0)tr[p][n]=++cnt;//cnt++
^
0_0_36856088_3667.cpp:12:15: error: 'tr' was not declared in this scope
p=tr[p][n];
^
0_0_36856088_3667.cpp:14:9: error: 'e' was not declared in this scope
e[p]++;
^
0_0_36856088_3667.cpp: In member function 'void AC::build()':
0_0_36856088_3667.cpp:19:16: error: 'tr' was not declared in this scope
if(tr[0][i])q.push(tr[0][i]);
^
0_0_36856088_3667.cpp:25:20: error: 'tr' was not declared in this scope
if(tr[u][i])fail[tr[u][i]]=tr[fail[u]][i],q.push(tr[u][i]);
^
0_0_36856088_3667.cpp:25:29: error: 'fail' was not declared in this scope
if(tr[u][i])fail[tr[u][i]]=tr[fail[u]][i],q.push(tr[u][i]);
^
0_0_36856088_3667.cpp:26:34: error: 'fail' was not declared in this scope
else tr[u][i]=tr[fail[u]][i];
^
0_0_36856088_3667.cpp: In member function 'int AC::query(char*)':
0_0_36856088_3667.cpp:33:15: error: 'tr' was not declared in this scope
u=tr[u][t[i]-'a'];
^
0_0_36856088_3667.cpp:34:30: error: 'e' was not declared in this scope
for(int j=u;j && e[j]!=-1;j=fail[j])res+=e[j],e[j]=-1;
^
0_0_36856088_3667.cpp:34:41: error: 'fail' was not declared in this scope
for(int j=u;j && e[j]!=-1;j=fail[j])res+=e[j],e[j]=-1;
^
0_0_36856088_3667.cpp: In function 'int main()':
0_0_36856088_3667.cpp:50:24: error: 'tmp' was not declared in this scope
scanf("%s",tmp+1);
^
0_0_36856088_3667.cpp:54:20: error: 'tmp' was not declared in this scope
scanf("%s",tmp+1);
^
|