0_0_38621386_12008.cpp:3:21: error: expected initializer before ':' token
typedef long long LL:
^
0_0_38621386_12008.cpp:5:1: error: 'LL' does not name a type
LL ans;
^~
0_0_38621386_12008.cpp: In function 'void Sam_add(int)':
0_0_38621386_12008.cpp:14:17: error: 'cnt' was not declared in this scope
int cur = ++cnt, p;
^~~
0_0_38621386_12008.cpp:14:17: note: suggested alternative: 'int'
int cur = ++cnt, p;
^~~
int
0_0_38621386_12008.cpp:15:24: error: 'last' was not declared in this scope
sam[cur].len = sam[last].len + 1;
^~~~
0_0_38621386_12008.cpp:15:24: note: suggested alternative: 'labs'
sam[cur].len = sam[last].len + 1;
^~~~
labs
0_0_38621386_12008.cpp:16:10: error: 'p' was not declared in this scope
for (p = last; p != -1 && !sam[p].next[c]; p = sam[p].link)
^
0_0_38621386_12008.cpp:18:9: error: 'p' was not declared in this scope
if (p == -1)
^
0_0_38621386_12008.cpp: In function 'void topology()':
0_0_38621386_12008.cpp:44:26: error: 'cnt' was not declared in this scope
for (int i = 1; i <= cnt; i++)
^~~
0_0_38621386_12008.cpp:44:26: note: suggested alternative: 'Ecnt'
for (int i = 1; i <= cnt; i++)
^~~
Ecnt
0_0_38621386_12008.cpp:46:26: error: 'cnt' was not declared in this scope
for (int i = 1; i <= cnt; i++)
^~~
0_0_38621386_12008.cpp:46:26: note: suggested alternative: 'Ecnt'
for (int i = 1; i <= cnt; i++)
^~~
Ecnt
0_0_38621386_12008.cpp: In function 'void clean()':
0_0_38621386_12008.cpp:59:26: error: 'cnt' was not declared in this scope
for (int i = 0; i <= cnt; i++)
^~~
0_0_38621386_12008.cpp:59:26: note: suggested alternative: 'Ecnt'
for (int i = 0; i <= cnt; i++)
^~~
Ecnt
0_0_38621386_12008.cpp:61:12: error: 'cnt' was not declared in this scope
Ecnt = cnt = last = ans = 0;
^~~
0_0_38621386_12008.cpp:61:12: note: suggested alternative: 'Ecnt'
Ecnt = cnt = last = ans = 0;
^~~
Ecnt
0_0_38621386_12008.cpp:61:18: error: 'last' was not declared in this scope
Ecnt = cnt = last = ans = 0;
^~~~
0_0_38621386_12008.cpp:61:18: note: suggested alternative: 'lt'
Ecnt = cnt = last = ans = 0;
^~~~
lt
0_0_38621386_12008.cpp:61:25: error: 'ans' was not declared in this scope
Ecnt = cnt = last = ans = 0;
^~~
0_0_38621386_12008.cpp:61:25: note: suggested alternative: 'abs'
Ecnt = cnt = last = ans = 0;
^~~
abs
0_0_38621386_12008.cpp: In function 'int main()':
0_0_38621386_12008.cpp:68:29: error: 'n' was not declared in this scope
scanf("%s", b + 1), n = strlen(b + 1), sam[0].link = -1;
^
0_0_38621386_12008.cpp:93:30: error: 'cnt' was not declared in this scope
for (int i = 1; i <= cnt; i++)
^~~
0_0_38621386_12008.cpp:93:30: note: suggested alternative: 'Ecnt'
for (int i = 1; i <= cnt; i++)
^~~
Ecnt
0_0_38621386_12008.cpp:94:13: error: 'ans' was not declared in this scope
ans = ans + max(0, sam[i].len - max(sam[i].ans, sam[sam[i].link].len));
^~~
0_0_38621386_12008.cpp:94:13: note: suggested alternative: 'abs'
ans = ans + max(0, sam[i].len - max(sam[i].ans, sam[sam[i].link].len));
^~~
abs
0_0_38621386_12008.cpp:95:40: error: 'ans' was not declared in this scope
printf("case %d: %lld\n", cas, ans);
^~~
0_0_38621386_12008.cpp:95:40: note: suggested alternative: 'abs'
printf("case %d: %lld\n", cas, ans);
^~~
abs
|