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_32286189_17132.cpp: In function 'void init_ST()':
0_0_32286189_17132.cpp:2:19: error: 'n' was not declared in this scope
     for(int i=0;i<n;i++) dp[i][0]=a[i];
                   ^
0_0_32286189_17132.cpp:2:26: error: 'dp' was not declared in this scope
     for(int i=0;i<n;i++) dp[i][0]=a[i];
                          ^
0_0_32286189_17132.cpp:2:35: error: 'a' was not declared in this scope
     for(int i=0;i<n;i++) dp[i][0]=a[i];
                                   ^
0_0_32286189_17132.cpp:3:25: error: 'n' was not declared in this scope
     for(int j=1;(1<<j)<=n;j++){
                         ^
0_0_32286189_17132.cpp:5:13: error: 'dp' was not declared in this scope
             dp[i][j]=max(dp[i][j-1],dp[i+(1<<(j-1))][j-1]);
             ^
0_0_32286189_17132.cpp:5:58: error: 'max' was not declared in this scope
             dp[i][j]=max(dp[i][j-1],dp[i+(1<<(j-1))][j-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-05-25 15:48:56, Gzip enabled