0_0_30451435_32095.cpp:5:7: error: 'nn' was not declared in this scope
int t[nn][26],T,now,n,mal,tag[nn],fail[nn],l,root;
^
0_0_30451435_32095.cpp:5:31: error: 'nn' was not declared in this scope
int t[nn][26],T,now,n,mal,tag[nn],fail[nn],l,root;
^
0_0_30451435_32095.cpp:5:40: error: 'nn' was not declared in this scope
int t[nn][26],T,now,n,mal,tag[nn],fail[nn],l,root;
^
0_0_30451435_32095.cpp:6:8: error: 'nn' was not declared in this scope
char b[nn],M[nn];
^
0_0_30451435_32095.cpp:6:14: error: 'nn' was not declared in this scope
char b[nn],M[nn];
^
0_0_30451435_32095.cpp: In function 'void insert(int)':
0_0_30451435_32095.cpp:12:9: error: 't' was not declared in this scope
if (t[now][b[j]-'a']==-1)
^
0_0_30451435_32095.cpp:12:16: error: 'b' was not declared in this scope
if (t[now][b[j]-'a']==-1)
^
0_0_30451435_32095.cpp:17:9: error: 't' was not declared in this scope
now=t[now][b[j]-'a'];
^
0_0_30451435_32095.cpp:17:16: error: 'b' was not declared in this scope
now=t[now][b[j]-'a'];
^
0_0_30451435_32095.cpp:18:14: error: 'tag' was not declared in this scope
if (j==l)tag[now]++;
^
0_0_30451435_32095.cpp: In function 'void build()':
0_0_30451435_32095.cpp:24:10: error: 't' was not declared in this scope
if (t[0][i]==-1)t[0][i]=0;
^
0_0_30451435_32095.cpp:26:6: error: 'fail' was not declared in this scope
fail[t[0][i]]=0;
^
0_0_30451435_32095.cpp:29:6: error: 'fail' was not declared in this scope
fail[0]=0;int o=0;
^
0_0_30451435_32095.cpp:33:8: error: 't' was not declared in this scope
if (t[now][i]==-1)t[now][i]=t[fail[now]][i];
^
0_0_30451435_32095.cpp: In function 'int main()':
0_0_30451435_32095.cpp:42:12: error: 't' was not declared in this scope
memset(t[0],-1,sizeof(t[0]));tot=0;
^
0_0_30451435_32095.cpp:43:12: error: 'fail' was not declared in this scope
memset(fail,0,sizeof(fail));
^
0_0_30451435_32095.cpp:44:12: error: 'tag' was not declared in this scope
memset(tag,0,sizeof(tag));
^
0_0_30451435_32095.cpp:47:13: error: 'b' was not declared in this scope
scanf("%s",b+1);l=strlen(b+1);
^
0_0_30451435_32095.cpp:51:28: error: 'M' was not declared in this scope
for (int j=1;j<=l;j++)M[j]=b[j];
^
0_0_30451435_32095.cpp:58:19: error: 'M' was not declared in this scope
while(t[now][M[i]-'a']==-1&&now>0)
^
0_0_30451435_32095.cpp:60:17: error: 'M' was not declared in this scope
now=t[now][M[i]-'a'];
^
0_0_30451435_32095.cpp:66:37: error: 'M' was not declared in this scope
for (int i=1;i<=l;i++)printf("%c",M[i]);
^
|