Help for ELOMAX

https://www.codechef.com/viewsolution/37285290

Can anyone let me know what’s wrong/mistake in this submission?

this might help :CodeChef: Practical coding for everyone