My code is failing for a condition, they have said there wont be a condition of equal points in The Lead game problem
#include
using namespace std;
int main() {
int t,a,b,max;
cin>>t;
max = 1;
while(t–)
{
cin>>a;
cin>>b;
if(abs(a-b)>abs(max))
{
max =a-b;
}
}
if(max>0)
cout<<"1"<<" "<<abs(max);
else
cout<<"2"<<" "<<abs(max);
return 0;
}
someone pls tell me wt the pblm is .