Problem:Snake Procession. Help

Not able to figure out why its giving Segementation Fault.
Code link: 67249974

Hey - you should be able to ask the doubt solvers about this at CodeChef