fork download
  1. ll find_left(ll x,ll y,ll val) {
  2. if(v>val) return y+1; // where v is the min val in this node of the segtree.
  3. if(s==e) return s;
  4. if(x>m)return r->find_left(x,y,val);
  5. else if(y<=m)return l->find_left(x,y,val);
  6. else {
  7. ll lv=l->find_left(x,m,val);
  8. if(lv<=m) return lv;
  9. else return r->find_left(m+1,y,val);
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘ll’ does not name a type
 ll find_left(ll x,ll y,ll val) {
 ^~
stdout
Standard output is empty