Gunakan Batas Bawah dalam Vektor Pasangan

int position = lower_bound(v.begin(),v.end(),{first, -inf})-v.begin();
Bright Batfish