Consecutive Numbers(RUBIX4) : Getting Wrong Answer

Help Me Out With My Code… I Am Getting Wrong Answer Despite Of Every Possible Test Case Is Getting Right On My Machine.
Here Is My Code :
http://www.codechef.com/viewsolution/2410714

//