0_0_19053867_7302.cpp:10:1: error: expected initializer before 'int'
int nextq[200010];
^
0_0_19053867_7302.cpp: In function 'void get_next(int)':
0_0_19053867_7302.cpp:15:2: error: 'nextq' was not declared in this scope
nextq[0] = -1;
^
0_0_19053867_7302.cpp:19:20: error: 'a' was not declared in this scope
while (k > -1 && a[k + 1] != a[q])
^
0_0_19053867_7302.cpp:21:7: error: 'a' was not declared in this scope
if (a[k + 1] == a[q])
^
0_0_19053867_7302.cpp: In function 'int main()':
0_0_19053867_7302.cpp:34:15: error: 'a' was not declared in this scope
scanf("%s", a);
^
0_0_19053867_7302.cpp:42:9: error: 'nextq' was not declared in this scope
q = nextq[q];
^
|