0_0_22042725_9554.cpp:2:43: error: 'string' does not name a type
void PreKMP(int PreKMP[], int size, const string str) {
^
0_0_22042725_9554.cpp: In function 'void PreKMP(int*, int, int)':
0_0_22042725_9554.cpp:6:25: error: invalid types 'const int[int]' for array subscript
while (j > -1 && str[j] != str[i])
^
0_0_22042725_9554.cpp:6:35: error: invalid types 'const int[int]' for array subscript
while (j > -1 && str[j] != str[i])
^
0_0_22042725_9554.cpp:9:12: error: invalid types 'const int[int]' for array subscript
if (str[j] == str[i])
^
0_0_22042725_9554.cpp:9:22: error: invalid types 'const int[int]' for array subscript
if (str[j] == str[i])
^
0_0_22042725_9554.cpp: At global scope:
0_0_22042725_9554.cpp:15:9: error: 'string' was not declared in this scope
int KMP(string a, string & b) {
^
0_0_22042725_9554.cpp:15:19: error: 'string' was not declared in this scope
int KMP(string a, string & b) {
^
0_0_22042725_9554.cpp:15:29: error: 'b' was not declared in this scope
int KMP(string a, string & b) {
^
0_0_22042725_9554.cpp:15:30: error: expression list treated as compound expression in initializer [-fpermissive]
int KMP(string a, string & b) {
^
0_0_22042725_9554.cpp:15:32: error: expected ',' or ';' before '{' token
int KMP(string a, string & b) {
^
|