0_0_39249213_8466.cpp: In function 'bool KMP(int, int)':
0_0_39249213_8466.cpp:10:15: error: 'n' was not declared in this scope
10 | int p=n[x],q=n[y];
| ^
0_0_39249213_8466.cpp:11:15: error: 'q' was not declared in this scope
11 | if (p>q) return 0;
| ^
0_0_39249213_8466.cpp:18:29: error: 'q' was not declared in this scope
18 | for (int i=1,j=0;i<=q;i++)
| ^
|