0_0_13469048_15823.cpp:46:8: error: stray '#' in program
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:17: error: stray '#' in program
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:26: error: stray '#' in program
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:27: error: invalid digit "8" in octal constant
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:48:10: error: stray '#' in program
while (T–)
^
0_0_13469048_15823.cpp:56:9: error: stray '#' in program
printf(“%d\n”, kmpSearch());
^
0_0_13469048_15823.cpp:56:1: error: stray '\' in program
printf(“%d\n”, kmpSearch());
^
0_0_13469048_15823.cpp:56:20: error: stray '#' in program
printf(“%d\n”, kmpSearch());
^
0_0_13469048_15823.cpp: In function 'void getNext()':
0_0_13469048_15823.cpp:16:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (word == word[j]) next[i++] = ++j;
^
0_0_13469048_15823.cpp: In function 'int kmpSearch()':
0_0_13469048_15823.cpp:27:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (word[j] == txt)
^
0_0_13469048_15823.cpp: In function 'int main()':
0_0_13469048_15823.cpp:46:9: error: lvalue required as unary '&' operand
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:14: error: expected primary-expression before '%' token
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:15: error: 'd' was not declared in this scope
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:23: error: expected primary-expression before ',' token
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:46:32: error: expected ';' before ')' token
scanf(“%d”, &T);
^
0_0_13469048_15823.cpp:48:15: error: expected ')' before ';' token
while (T–)
^
0_0_13469048_15823.cpp:48:16: error: expected primary-expression before ')' token
while (T–)
^
|