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_32691712_30756.cpp: In function 'void PushUp(int, int, int)':
0_0_32691712_30756.cpp:14:57: error: 'MAX' was not declared in this scope
     tree[idx].mv = MAX(tree[idx<<1].mv,tree[idx<<1|1].mv);
                                                         ^
0_0_32691712_30756.cpp: In function 'int query(int, int, int)':
0_0_32691712_30756.cpp:54:47: error: 'MAX' was not declared in this scope
     if(l<=mid) ans = MAX(ans,query(l,r,idx<<1)); 
                                               ^
0_0_32691712_30756.cpp:55:48: error: 'MAX' was not declared in this scope
     if(r>mid) ans = MAX(ans,query(l,r,idx<<1|1)); 
                                                ^
0_0_32691712_30756.cpp:57:50: error: 'MIN' was not declared in this scope
         ans = MAX(ans,MIN(mid-l+1,tree[idx<<1].rv)+MIN(r-mid,tree[idx<<1|1].lv)); ///z
                                                  ^
0_0_32691712_30756.cpp:57:80: error: 'MAX' was not declared in this scope
         ans = MAX(ans,MIN(mid-l+1,tree[idx<<1].rv)+MIN(r-mid,tree[idx<<1|1].lv)); ///z
                                                                                ^


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-23 04:50:24, Gzip enabled