Segmentation Error In BusyMan

Hello Sir, actually I implemented the solution of BUSYMAN problem but I don’t know why it is getting a Segmentation Fault. https://ideone.com/VfJ9HE

hello @cesur
your code is correct,
pls submit again.