0_0_38039688_13746.cpp: In function 'int dfs(int, int)':
0_0_38039688_13746.cpp:14:13: error: 'n' was not declared in this scope
if (x > n && y > n)return 1;
^
0_0_38039688_13746.cpp:17:9: error: 'P' was not declared in this scope
if (P[x] == S[x + y - 1] && x <= n) {
^
0_0_38039688_13746.cpp:17:17: error: 'S' was not declared in this scope
if (P[x] == S[x + y - 1] && x <= n) {
^
0_0_38039688_13746.cpp:17:39: error: 'n' was not declared in this scope
if (P[x] == S[x + y - 1] && x <= n) {
^
0_0_38039688_13746.cpp:19:16: error: 'mod' was not declared in this scope
ans %= mod;
^
0_0_38039688_13746.cpp:21:9: error: 'Q' was not declared in this scope
if (Q[y] == S[x + y - 1] && y <= n) {
^
0_0_38039688_13746.cpp:21:17: error: 'S' was not declared in this scope
if (Q[y] == S[x + y - 1] && y <= n) {
^
0_0_38039688_13746.cpp:21:38: error: 'n' was not declared in this scope
if (Q[y] == S[x + y - 1] && y <= n) {
^
0_0_38039688_13746.cpp:23:16: error: 'mod' was not declared in this scope
ans %= mod;
^
0_0_38039688_13746.cpp: In function 'void slove()':
0_0_38039688_13746.cpp:28:12: error: 'n' was not declared in this scope
cin >> n;
^
0_0_38039688_13746.cpp:30:40: error: 'P' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> P[i];
^
0_0_38039688_13746.cpp:31:40: error: 'Q' was not declared in this scope
for (int i = 1; i <= n; i++)cin >> Q[i];
^
0_0_38039688_13746.cpp:32:44: error: 'S' was not declared in this scope
for (int i = 1; i <= 2 * n; i++)cin >> S[i];
^
0_0_38039688_13746.cpp: In function 'int main()':
0_0_38039688_13746.cpp:46:15: error: 'solve' was not declared in this scope
solve();
^
|