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_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];
                                            ^


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-12-01 12:38:29, Gzip enabled