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