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_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);}
      |                                             ^~~


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-23 09:34:19, Gzip enabled