Spoj pratha problem

Please tell me what is wrong in my code. the link of my code is given below