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