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_36228803_22742.cpp:14:2: error: 'll' does not name a type
  ll len, fa;
  ^
0_0_36228803_22742.cpp: In function 'void extend(int)':
0_0_36228803_22742.cpp:25:11: error: 'struct Node' has no member named 'len'
  node[np].len = node[p].len + 1;
           ^
0_0_36228803_22742.cpp:25:25: error: 'struct Node' has no member named 'len'
  node[np].len = node[p].len + 1;
                         ^
0_0_36228803_22742.cpp:26:42: error: 'struct Node' has no member named 'fa'
  for (; p && !node[p].ch[c]; p = node[p].fa) node[p].ch[c] = np;
                                          ^
0_0_36228803_22742.cpp:27:19: error: 'struct Node' has no member named 'fa'
  if (!p) node[np].fa = 1;
                   ^
0_0_36228803_22742.cpp:31:15: error: 'struct Node' has no member named 'len'
   if (node[q].len == node[p].len + 1) node[np].fa = q;
               ^
0_0_36228803_22742.cpp:31:30: error: 'struct Node' has no member named 'len'
   if (node[q].len == node[p].len + 1) node[np].fa = q;
                              ^
0_0_36228803_22742.cpp:31:48: error: 'struct Node' has no member named 'fa'
   if (node[q].len == node[p].len + 1) node[np].fa = q;
                                                ^
0_0_36228803_22742.cpp:35:33: error: 'struct Node' has no member named 'len'
    node[nq] = node[q], node[nq].len = node[p].len + 1;
                                 ^
0_0_36228803_22742.cpp:35:47: error: 'struct Node' has no member named 'len'
    node[nq] = node[q], node[nq].len = node[p].len + 1;
                                               ^
0_0_36228803_22742.cpp:36:12: error: 'struct Node' has no member named 'fa'
    node[q].fa = node[np].fa = nq;
            ^
0_0_36228803_22742.cpp:36:26: error: 'struct Node' has no member named 'fa'
    node[q].fa = node[np].fa = nq;
                          ^
0_0_36228803_22742.cpp:37:48: error: 'struct Node' has no member named 'fa'
    for (; p && node[p].ch[c] == q; p = node[p].fa) node[p].ch[c] = nq;
                                                ^
0_0_36228803_22742.cpp: In function 'void dfs(int)':
0_0_36228803_22742.cpp:54:29: error: 'struct Node' has no member named 'len'
  if (f[u] ==k) ans+=node[u].len-node[node[u].fa].len;
                             ^
0_0_36228803_22742.cpp:54:46: error: 'struct Node' has no member named 'fa'
  if (f[u] ==k) ans+=node[u].len-node[node[u].fa].len;
                                              ^
0_0_36228803_22742.cpp: In function 'int main()':
0_0_36228803_22742.cpp:69:48: error: 'struct Node' has no member named 'fa'
   for (int i = 2; i <= tot; i ++ ) add(node[i].fa, i);
                                                ^


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-11-22 19:42:31, Gzip enabled