Help me in solving TLG problem

My issue

can anyone tell me the test case for which my code is wrong?

My code

#include <bits/stdc++.h>
using namespace std;

int main() {
	// your code goes here
    int t,lead=0,winner;
    cin>>t;
    for(int i=1;i<=t;i++)
    {
        int x,y,diff;
        cin>>x>>y;
        if(x>y)
        {
            diff=x-y;
            if(diff>lead)
            {
                winner=1;
                lead=diff;
            }
        }
        else
        {
            diff=y-x;
            if(diff>lead)
            {
                winner=2;
                lead=diff;
            }
        }
    }
        cout<<winner<<" "<<lead;
}

Problem Link: The Lead Game Practice Coding Problem - CodeChef

@ankitpandey506
actually u have to keep adding the scores of previous rounds to the next round and then calculate the difference .
like this

#include <bits/stdc++.h>
#include <iostream>
using namespace std;

int main() {

	int t;
	cin>>t;
	
	int win = 0;
    int maxDifence=0;
    int FScore=0;
    int SScore=0;
	while(t--)
	{
	    int first,second;
	    cin>>first >>second;
	    FScore+=first;
	    SScore+=second;
	    
    int diference= FScore-SScore;
    
	if (diference > maxDifence)
	    {
	        maxDifence=diference;
	        win = 1;
	    }
	    else if(diference<0&&abs(diference)>maxDifence)
	    {
	        maxDifence= -diference;
	        win = 2;
	    }
	    	//if(FScore==SScore) win=0;
	}

	cout << win << " " << maxDifence << endl;
	return 0;
}