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_13325746_5371.cpp: In function 'void build(int, int, int)':
0_0_13325746_5371.cpp:26:60: error: 'max' was not declared in this scope
   tree[id].MAX = max(tree[id * 2].MAX, tree[id * 2 + 1].MAX);
                                                            ^
0_0_13325746_5371.cpp: In function 'void update(int, int, int)':
0_0_13325746_5371.cpp:40:60: error: 'max' was not declared in this scope
   tree[id].MAX = max(tree[id * 2].MAX, tree[id * 2 + 1].MAX);
                                                            ^
0_0_13325746_5371.cpp: In function 'int queryMax(int, int, int)':
0_0_13325746_5371.cpp:56:40: error: 'max' was not declared in this scope
    queryMax(id * 2 + 1, mid + 1, right));
                                        ^


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-10-06 06:30:24, Gzip enabled