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_30453338_23261.cpp:64:10: error: 'maxp' was not declared in this scope
   int dp[maxp][maxn];
          ^
0_0_30453338_23261.cpp: In member function 'void stable::cal(int*, int)':
0_0_30453338_23261.cpp:66:16: error: 'dp' was not declared in this scope
     rep(i,1,n) dp[0][i]=a[i];
                ^
0_0_30453338_23261.cpp:68:7: error: 'dp' was not declared in this scope
       dp[j][i]=min(dp[j-1][i],dp[j-1][i+(1<<(j-1))]);
       ^
0_0_30453338_23261.cpp: In member function 'int stable::query(int, int)':
0_0_30453338_23261.cpp:73:16: error: 'dp' was not declared in this scope
     return min(dp[lg][l],dp[lg][r-(1<<lg)+1]);
                ^


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-25 17:40:42, Gzip enabled