0_0_38845030_32146.cpp:610:51: error: 'plus' in namespace 'std' does not name a template type
610 | template<typename _Tp,typename _Plus=std::plus<_Tp>>
| ^~~~
0_0_38845030_32146.cpp:610:55: error: expected '>' before '<' token
610 | template<typename _Tp,typename _Plus=std::plus<_Tp>>
| ^
0_0_38845030_32146.cpp:646:24: error: template argument 2 is invalid
646 | BIT<int> bit;
| ^
0_0_38845030_32146.cpp: In member function 'void MAIN::Generate_Tree<_Compare, _RevCompare>::resize(int, int, int)':
0_0_38845030_32146.cpp:650:52: error: request for member 'resize' in '((MAIN::Generate_Tree<_Compare, _RevCompare>*)this)->MAIN::Generate_Tree<_Compare, _RevCompare>::bit', which is of non-class type 'int'
650 | node=n,lct.resize(n+m),bit.resize(m);
| ^~~~~~
0_0_38845030_32146.cpp: In member function 'void MAIN::Generate_Tree<_Compare, _RevCompare>::add_edge(int, int, int, int)':
0_0_38845030_32146.cpp:664:45: error: request for member 'upd' in '((MAIN::Generate_Tree<_Compare, _RevCompare>*)this)->MAIN::Generate_Tree<_Compare, _RevCompare>::bit', which is of non-class type 'int'
664 | bit.upd(std::get<2>(edge[it]),-1),bit.upd(w,1);
| ^~~
0_0_38845030_32146.cpp:664:79: error: request for member 'upd' in '((MAIN::Generate_Tree<_Compare, _RevCompare>*)this)->MAIN::Generate_Tree<_Compare, _RevCompare>::bit', which is of non-class type 'int'
664 | bit.upd(std::get<2>(edge[it]),-1),bit.upd(w,1);
| ^~~
0_0_38845030_32146.cpp:667:93: error: request for member 'upd' in '((MAIN::Generate_Tree<_Compare, _RevCompare>*)this)->MAIN::Generate_Tree<_Compare, _RevCompare>::bit', which is of non-class type 'int'
667 | else lct.fix(id+node,w),lct.link(x,id+node),lct.link(y,id+node),bit.upd(w,1);
| ^~~
0_0_38845030_32146.cpp: In member function 'int MAIN::Generate_Tree<_Compare, _RevCompare>::bound(int)':
0_0_38845030_32146.cpp:670:45: error: request for member 'qry' in '((MAIN::Generate_Tree<_Compare, _RevCompare>*)this)->MAIN::Generate_Tree<_Compare, _RevCompare>::bit', which is of non-class type 'int'
670 | int bound(int x){return bit.qry(x);}
| ^~~
|