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_17024977_3802.cpp: In function 'void update(int, int, int, int, int)':
0_0_17024977_3802.cpp:11:1: error: 'maxv' was not declared in this scope
 maxv[o]=v;
 ^
0_0_17024977_3802.cpp:13:1: error: 'sum' was not declared in this scope
 sum[o]=v;
 ^
0_0_17024977_3802.cpp:29:1: error: 'maxv' was not declared in this scope
 maxv[o]=max(maxv[o*2],maxv[o*2+1]);
 ^
0_0_17024977_3802.cpp:29:34: error: 'max' was not declared in this scope
 maxv[o]=max(maxv[o*2],maxv[o*2+1]);
                                  ^
0_0_17024977_3802.cpp:31:1: error: 'sum' was not declared in this scope
 sum[o]=sum[o*2]+sum[o*2+1];
 ^
0_0_17024977_3802.cpp: In function 'int query_sum(int, int, int, int, int)':
0_0_17024977_3802.cpp:45:8: error: 'sum' was not declared in this scope
 return sum[o];
        ^
0_0_17024977_3802.cpp: In function 'int query_max(int, int, int, int, int)':
0_0_17024977_3802.cpp:65:8: error: 'maxv' was not declared in this scope
 return maxv[o];
        ^
0_0_17024977_3802.cpp:69:40: error: 'max' was not declared in this scope
 return max(ans,query_max(ql,qr,o*2,l,m));
                                        ^
0_0_17024977_3802.cpp:73:44: error: 'max' was not declared in this scope
 return max(ans,query_max(ql,qr,o*2+1,m+1,r));
                                            ^


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-13 14:44:01, Gzip enabled