0_0_29401518_1542.cpp: In function 'int main()': 0_0_29401518_1542.cpp:37:32: error: 'S' was not declared in this scope while (ss[i + P[i]] == S[i - P[i]]) ^ 0_0_29401518_1542.cpp:43:24: error: 'q' was not declared in this scope MaxRight = q - 1; ^