i m getting sigsegv error.

my solution is https://www.codechef.com/viewsolution/14730637 for the problem https://www.codechef.com/problems/LOSTMAX

You should see this link link text