0_0_13726065_30778.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13726065_30778.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13726065_30778.cpp: In function 'void getNext()':
0_0_13726065_30778.cpp:13:40: error: 'memset' was not declared in this scope
memset(next, 0, sizeof(int) * gWlen);
^
0_0_13726065_30778.cpp:15:5: error: expected ';' before '{' token
{
^
0_0_13726065_30778.cpp:15:5: error: expected primary-expression before '{' token
0_0_13726065_30778.cpp:15:5: error: expected ')' before '{' token
0_0_13726065_30778.cpp:17:21: error: expected ')' before numeric constant
else if (j 0) j = next[j-1];
^
0_0_13726065_30778.cpp: In function 'int kmpSearch()':
0_0_13726065_30778.cpp:26:5: error: expected ';' before '{' token
{
^
0_0_13726065_30778.cpp:26:5: error: expected primary-expression before '{' token
0_0_13726065_30778.cpp:26:5: error: expected ')' before '{' token
0_0_13726065_30778.cpp:37:21: error: expected ')' before numeric constant
else if (j 0) j = next[j-1];
^
0_0_13726065_30778.cpp: In function 'int main()':
0_0_13726065_30778.cpp:46:19: error: 'scanf' was not declared in this scope
scanf("%d", &T);
^
0_0_13726065_30778.cpp:47:13: error: 'getchar' was not declared in this scope
getchar();
^
0_0_13726065_30778.cpp:50:18: error: 'gets' was not declared in this scope
gets(word);
^
0_0_13726065_30778.cpp:51:28: error: 'strlen' was not declared in this scope
gWlen = strlen(word);
^
0_0_13726065_30778.cpp:56:35: error: 'printf' was not declared in this scope
printf("%d\n", kmpSearch());
^
|