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_21681806_16147.cpp: In function 'void update(int)':
0_0_21681806_16147.cpp:21:74: error: 'max' was not declared in this scope
  tree[r].max1=max(tree[ls].max1,max(tree[rs].max1,tree[ls].r1+tree[rs].l1));//Tree[Ls].R1+Tree[Rs].L1就是前面所述的Tree[p].Mid1
                                                                          ^
0_0_21681806_16147.cpp:21:75: error: 'max' was not declared in this scope
  tree[r].max1=max(tree[ls].max1,max(tree[rs].max1,tree[ls].r1+tree[rs].l1));//Tree[Ls].R1+Tree[Rs].L1就是前面所述的Tree[p].Mid1
                                                                           ^
0_0_21681806_16147.cpp:21:75: error: redeclaration of '<typeprefixerror>max'
0_0_21681806_16147.cpp:21:74: note: previous declaration '<typeprefixerror>max'
  tree[r].max1=max(tree[ls].max1,max(tree[rs].max1,tree[ls].r1+tree[rs].l1));//Tree[Ls].R1+Tree[Rs].L1就是前面所述的Tree[p].Mid1
                                                                          ^
0_0_21681806_16147.cpp: In function 'int getans(int)':
0_0_21681806_16147.cpp:47:29: error: 'min' was not declared in this scope
   lenm+=min(temp,tree[ls].r1);
                             ^
0_0_21681806_16147.cpp:51:31: error: 'max' was not declared in this scope
  return max(lenl,max(lenr,lenm));
                               ^
0_0_21681806_16147.cpp:51:32: error: 'max' was not declared in this scope
  return max(lenl,max(lenr,lenm));
                                ^
0_0_21681806_16147.cpp:51:32: error: redeclaration of '<typeprefixerror>max'
0_0_21681806_16147.cpp:51:31: note: previous declaration '<typeprefixerror>max'
  return max(lenl,max(lenr,lenm));
                               ^


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-25 03:50:10, Gzip enabled