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_34738502_18329.cpp:104:14: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
 int Sum[Max<<2];
              ^
0_0_34738502_18329.cpp:105:10: error: size of array 'A' has non-integral type 'double'
 int A[Max] , n ;
          ^
0_0_34738502_18329.cpp: In function 'void PushUp(int)':
0_0_34738502_18329.cpp:109:5: error: 'Sum' was not declared in this scope
     Sum[r]  = max(Sum[r<<1] , Sum[r<<1|1 ]); 
     ^
0_0_34738502_18329.cpp: In function 'void Build(int, int, int)':
0_0_34738502_18329.cpp:116:9: error: 'Sum' was not declared in this scope
         Sum[rt] = A[L];
         ^
0_0_34738502_18329.cpp: In function 'void Update(int, int, int, int, int)':
0_0_34738502_18329.cpp:131:9: error: 'Sum' was not declared in this scope
         Sum[rt] = C ;
         ^
0_0_34738502_18329.cpp: In function 'int Queue(int, int, int, int, int)':
0_0_34738502_18329.cpp:145:33: error: 'Sum' was not declared in this scope
     if (l >=L && r <=R ) return Sum[rt];
                                 ^


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-07-08 14:49:45, Gzip enabled