Post office problem in hard

Respective sir/madam,
I have submitted the code for post office problem,but it is showing runtime error sigsegv though I have checked the array references perfectly.I can’t understand what to do.I will be highly obliged if you kindly help me out in this problem…

@sayandeep91 : Post a link to the problem page and your submitted solution for better responses .