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_13761048_17722.cpp: In function 'void maketree(int, int, int)':
0_0_13761048_17722.cpp:21:48: error: 'MAX' was not declared in this scope
   tree[i].max=MAX(tree[2*i].max,tree[2*i+1].max);
                                                ^
0_0_13761048_17722.cpp: In function 'void update(int, int, int)':
0_0_13761048_17722.cpp:32:47: error: 'MAX' was not declared in this scope
  tree[i].max=MAX(tree[2*i].max,tree[2*i+1].max);
                                               ^
0_0_13761048_17722.cpp: In function 'int query(int, int, int)':
0_0_13761048_17722.cpp:40:59: error: 'MAX' was not declared in this scope
  if(A<=(tree[i].a+tree[i].b)/2) max=MAX(max,query(2*i,A,B));
                                                           ^
0_0_13761048_17722.cpp:41:63: error: 'MAX' was not declared in this scope
  if(B>=(tree[i].a+tree[i].b)/2+1) max=MAX(max,query(2*i+1,A,B));
                                                               ^


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-16 22:44:38, Gzip enabled