0_0_37759322_8029.cpp: In function 'int dfs(int, int)':
0_0_37759322_8029.cpp:31:9: error: 'P' was not declared in this scope
if (P[x] == S[x + y - 1] && x <= n) {
^
0_0_37759322_8029.cpp:31:17: error: 'S' was not declared in this scope
if (P[x] == S[x + y - 1] && x <= n) {
^
0_0_37759322_8029.cpp:35:9: error: 'Q' was not declared in this scope
if (Q[y] == S[x + y - 1] && y <= n) {
^
0_0_37759322_8029.cpp:35:17: error: 'S' was not declared in this scope
if (Q[y] == S[x + y - 1] && y <= n) {
^
0_0_37759322_8029.cpp: In function 'void slove()':
0_0_37759322_8029.cpp:45:40: error: 'P' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> P[i];
^
0_0_37759322_8029.cpp:46:40: error: 'Q' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> Q[i];
^
0_0_37759322_8029.cpp:47:44: error: 'S' was not declared in this scope
for (int i = 1; i <= 2 * n; i++)cin >> S[i];
^
|