Getting wrong answer

can you please take a look into it:-

@aiman.mumtaz
Line 18-20 should be
ans.push_back(sum);
}
return ans;

Tried this, still not working

@aiman.mumtaz
Line 44 for(int i=0;i<sv1.size();i++){

Also you are not using the result of lower_bound
Think of what happens when the value you give as lower_bound is not present in the vector

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.