这样写运行时会报错吗
template<typename T,
typename Container >
class Segment_Tree
{
protected:
vector<T> _tree;
il int Left(const int x){rt x<<1;}
il int Right(const int x){rt x<<1|1;}
public:
Segment_Tree(const Container _con,int _l,int _r,int _root)
{
_tree.resize(_r<<2+5,0);
if(_l==_r)
{
_tree[_root]=_con[_l];
rt;
}
int _mid=_l+((_r-_l)>>1);
Segment_Tree(_con,_l,_mid,Left(_root));
Segment_Tree(_con,_mid+1,_r,Right(_root));
_tree[_root]=_tree[Left(_root)]+_tree[Right(_root)];
}
};