0_0_39790564_3191.cpp: In function 'void getnext(std::string)':
0_0_39790564_3191.cpp:7:12: error: invalid types 'int[int]' for array subscript
7 | nxt[1] = 0;
| ^
0_0_39790564_3191.cpp:10:28: error: invalid types 'int[int]' for array subscript
10 | nxt[++i] = ++j;
| ^
0_0_39790564_3191.cpp:12:29: error: invalid types 'int[int]' for array subscript
12 | else j = nxt[j];
| ^
0_0_39790564_3191.cpp: In function 'int main()':
0_0_39790564_3191.cpp:21:18: error: 'j' was not declared in this scope
21 | int i =1;j=1;
| ^
|