TLG code not accepting codeshef

but codee blocks giving correct answer
problem statement


my code is
https://www.codechef.com/viewsolution/23603201
please suggest correction .

Your code actually calculates the total points of both the persons at the end of all rounds and print the person with lead at that time. But the question asks to print the person with the maximum lead at the end of any round. It can be clearly seen in the example, given that at the end the lead was of just 3 but initially the lead was 58. So the lead 58 is used to decide the winner and not 3.