Sir, please have a look at my code. i'm getting the segmentation fault

hello @chandreshmaurya
check now->
https://ide.codingblocks.com/s/469588

sir, please have a look

sorry sir, i didn’t got notificaton. now i got. thank you

sir, i’m still getting the segmentation fault

check now->

u need to store all ur output data in some vector and then print that vector in sorted order.

if the output is empty then print 0

Thank you sir, Done .

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.