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_20489151_2265.cpp:155:1: error: expected ';' after struct definition
 }
 ^
0_0_20489151_2265.cpp: In member function 'void link_cut_tree::pushup(node*)':
0_0_20489151_2265.cpp:39:49: error: 'max' was not declared in this scope
   x->mx=max(x->val,max(x->ch[0]->mx,x->ch[1]->mx));
                                                 ^
0_0_20489151_2265.cpp:39:50: error: 'max' was not declared in this scope
   x->mx=max(x->val,max(x->ch[0]->mx,x->ch[1]->mx));
                                                  ^
0_0_20489151_2265.cpp:39:50: error: redeclaration of '<typeprefixerror>max'
0_0_20489151_2265.cpp:39:49: note: previous declaration '<typeprefixerror>max'
   x->mx=max(x->val,max(x->ch[0]->mx,x->ch[1]->mx));
                                                 ^
0_0_20489151_2265.cpp: In member function 'void link_cut_tree::pushdown(node*)':
0_0_20489151_2265.cpp:45:26: error: 'swap' was not declared in this scope
    swap(x->ch[0],x->ch[1]);
                          ^
0_0_20489151_2265.cpp:56:19: error: 'add' was not declared in this scope
     x->ch[0]->mx+=add;
                   ^
0_0_20489151_2265.cpp:62:19: error: 'add' was not declared in this scope
     x->ch[1]->mx+=add;
                   ^


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-17 08:49:22, Gzip enabled