0_0_36200939_22624.cpp: In function 'void get_next()':
0_0_36200939_22624.cpp:10:5: error: 'nextt' was not declared in this scope
nextt[0] = -1;//这个是辅助计算next值得
^
0_0_36200939_22624.cpp:11:15: error: 'n' was not declared in this scope
while(i < n) {
^
0_0_36200939_22624.cpp:12:23: error: 'S' was not declared in this scope
if(j == -1 || S[i] == S[j]) {
^
0_0_36200939_22624.cpp:14:47: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(S[i] == S[j]) nextt[j] = next[i];//压缩路径
^
0_0_36200939_22624.cpp:21:1: error: a function-definition is not allowed here before '{' token
{
^
0_0_36200939_22624.cpp:57:1: error: expected '}' at end of input
}
^
0_0_36200939_22624.cpp:57:1: error: expected '}' at end of input
|