0_0_21028656_19792.cpp:7:8: error: 'MAX' was not declared in this scope
char s[MAX << 1], save[MAX << 1];
^
0_0_21028656_19792.cpp:7:24: error: 'MAX' was not declared in this scope
char s[MAX << 1], save[MAX << 1];
^
0_0_21028656_19792.cpp:8:7: error: 'MAX' was not declared in this scope
int p[MAX << 1], l, r;
^
0_0_21028656_19792.cpp: In function 'int Manacher()':
0_0_21028656_19792.cpp:12:19: error: 's' was not declared in this scope
int len = strlen(s), maxp = 0, maxl = 0;
^
0_0_21028656_19792.cpp:21:7: error: 'p' was not declared in this scope
if (p[maxp] + maxp > i)
^
0_0_21028656_19792.cpp:21:9: error: 'maxp' was not declared in this scope
if (p[maxp] + maxp > i)
^
0_0_21028656_19792.cpp:25:16: error: 'p' was not declared in this scope
while (s[i - p[i]] == s[i + p[i]])
^
0_0_21028656_19792.cpp:27:7: error: 'p' was not declared in this scope
if (p[maxp] + maxp < i + p[i])
^
0_0_21028656_19792.cpp:27:9: error: 'maxp' was not declared in this scope
if (p[maxp] + maxp < i + p[i])
^
0_0_21028656_19792.cpp:29:7: error: 'maxl' was not declared in this scope
if (maxl < p[i] - 1)
^
0_0_21028656_19792.cpp:29:14: error: 'p' was not declared in this scope
if (maxl < p[i] - 1)
^
0_0_21028656_19792.cpp:36:9: error: 'maxl' was not declared in this scope
return maxl;
^
0_0_21028656_19792.cpp: In function 'int main()':
0_0_21028656_19792.cpp:43:29: error: 's' was not declared in this scope
while (scanf("%c %s", &ch, s) != EOF)
^
0_0_21028656_19792.cpp:55:10: error: 'save' was not declared in this scope
strcpy(save, s);
^
|