0_0_18898160_12846.cpp:66:31: error: expected initializer before 'pos'
int nxt[MAXL][MAXC],lnk[MAXL] pos[MAXL];
^
0_0_18898160_12846.cpp: In function 'void init()':
0_0_18898160_12846.cpp:72:2: error: 'lnk' was not declared in this scope
lnk[0] = -1;
^
0_0_18898160_12846.cpp: In function 'void extend(char, int)':
0_0_18898160_12846.cpp:86:2: error: 'pos' was not declared in this scope
pos[cur] = j;
^
0_0_18898160_12846.cpp:87:44: error: 'lnk' was not declared in this scope
for (p = last; p != -1 && !nxt[p][c]; p = lnk[p]) nxt[p][c] = cur;
^
0_0_18898160_12846.cpp:88:15: error: 'lnk' was not declared in this scope
if (p == -1) lnk[cur] = 0;
^
0_0_18898160_12846.cpp:91:29: error: 'lnk' was not declared in this scope
if (len[q] == len[p] + 1) lnk[cur] = q;
^
0_0_18898160_12846.cpp:96:4: error: 'lnk' was not declared in this scope
lnk[clone] = lnk[q];
^
0_0_18898160_12846.cpp: In function 'int main()':
0_0_18898160_12846.cpp:124:23: error: 'pos' was not declared in this scope
printf("%d\n", min(pos[cur], len[cur]) - len[lnk[cur]]);
^
0_0_18898160_12846.cpp:124:49: error: 'lnk' was not declared in this scope
printf("%d\n", min(pos[cur], len[cur]) - len[lnk[cur]]);
^
|