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));
^
|