0_0_22202769_2862.cpp: In function 'void inItHash(char*)':
0_0_22202769_2862.cpp:19:19: error: 'strlen' was not declared in this scope
len = strlen(temp);
^
0_0_22202769_2862.cpp: In function 'int judgeStr(char*, int)':
0_0_22202769_2862.cpp:27:22: error: 'strlen' was not declared in this scope
len = strlen(str);
^
0_0_22202769_2862.cpp:29:10: error: 'sum' was not declared in this scope
sum = sum * X + (str[j-1] - 'a');
^
0_0_22202769_2862.cpp:32:13: error: 'sum' was not declared in this scope
if(sum == get(k, k+len-1, hhash)) { //取出与目标串等长的子串的hash值,
^
0_0_22202769_2862.cpp:33:15: error: 'flag' was not declared in this scope
flag = 1; //与目标串进行比较。
^
0_0_22202769_2862.cpp:37:10: error: 'flag' was not declared in this scope
if(flag)
^
0_0_22202769_2862.cpp:38:42: error: 'printf' was not declared in this scope
printf("字符串str为总串的子串\n");
^
0_0_22202769_2862.cpp:40:44: error: 'printf' was not declared in this scope
printf("字符串str不是总串的子串\n");
^
|