F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]]);
                                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-06 00:43:33, Gzip enabled