0_0_16842631_11237.cpp:64:11: error: 'MAXN' was not declared in this scope
int a[MAXN][MAXC], link[MAXN], len[MAXN], pos, suff, n;
^
0_0_16842631_11237.cpp:64:17: error: 'MAXC' was not declared in this scope
int a[MAXN][MAXC], link[MAXN], len[MAXN], pos, suff, n;
^
0_0_16842631_11237.cpp:64:29: error: 'MAXN' was not declared in this scope
int a[MAXN][MAXC], link[MAXN], len[MAXN], pos, suff, n;
^
0_0_16842631_11237.cpp:64:40: error: 'MAXN' was not declared in this scope
int a[MAXN][MAXC], link[MAXN], len[MAXN], pos, suff, n;
^
0_0_16842631_11237.cpp:65:12: error: 'MAXN' was not declared in this scope
char s[MAXN];
^
0_0_16842631_11237.cpp: In member function 'int Pam::NewNode(int)':
0_0_16842631_11237.cpp:67:23: error: 'MAXC' was not declared in this scope
for(int i=0;i<MAXC;++i)a[pos][i]=0;
^
0_0_16842631_11237.cpp:67:32: error: 'a' was not declared in this scope
for(int i=0;i<MAXC;++i)a[pos][i]=0;
^
0_0_16842631_11237.cpp:68:9: error: 'link' was not declared in this scope
link[pos]=0, len[pos]=l;
^
0_0_16842631_11237.cpp:68:22: error: 'len' was not declared in this scope
link[pos]=0, len[pos]=l;
^
0_0_16842631_11237.cpp: In member function 'void Pam::init()':
0_0_16842631_11237.cpp:74:9: error: 'link' was not declared in this scope
link[0]=link[1]=1; s[0]=-1;
^
0_0_16842631_11237.cpp:74:28: error: 's' was not declared in this scope
link[0]=link[1]=1; s[0]=-1;
^
0_0_16842631_11237.cpp: In member function 'int Pam::getfail(int)':
0_0_16842631_11237.cpp:77:15: error: 's' was not declared in this scope
while(s[n-len[p]-1]!=s[n])p=link[p];
^
0_0_16842631_11237.cpp:77:19: error: 'len' was not declared in this scope
while(s[n-len[p]-1]!=s[n])p=link[p];
^
0_0_16842631_11237.cpp:77:37: error: 'link' was not declared in this scope
while(s[n-len[p]-1]!=s[n])p=link[p];
^
0_0_16842631_11237.cpp: In member function 'void Pam::Insert(char)':
0_0_16842631_11237.cpp:82:9: error: 's' was not declared in this scope
s[++n]=v;
^
0_0_16842631_11237.cpp:84:13: error: 'a' was not declared in this scope
if(!a[cur][v]) {
^
0_0_16842631_11237.cpp:85:29: error: 'len' was not declared in this scope
int now=NewNode(len[cur]+2);
^
0_0_16842631_11237.cpp:86:13: error: 'link' was not declared in this scope
link[now]=a[getfail(link[cur])][v];
^
0_0_16842631_11237.cpp:88:16: error: 'a' was not declared in this scope
} suff=a[cur][v];
^
|