F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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();
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-24 17:43:39, Gzip enabled