0_0_18343602_22409.cpp: In function 'int main()':
0_0_18343602_22409.cpp:28:43: error: invalid types 'int[int]' for array subscript
for (i = 0; i < n; i++) scanf("%d", &t[i]);
^
0_0_18343602_22409.cpp:30:32: error: invalid conversion from 'int' to 'int*' [-fpermissive]
printf("%d\n", kmp(t, n, p, m));
^
0_0_18343602_22409.cpp:12:5: note: initializing argument 1 of 'int kmp(int*, int, int*, int)'
int kmp(int t[], int n, int p[], int m) {
^
|