Help me in solving DICEGAME2 problem

My issue

I cant figure out where my code is failing the test case?

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int t;
	scanf("%d",&t);
	while(t--)
	{
	    int a[3],b[3];
	    for(int i=0;i<3;i++)
	    {
	        scanf("%d",&a[i]);
	    }
	    for(int i=0;i<3;i++)
	    {
	        scanf("%d",&b[i]);
	    }
	    //sort
	    for(int i=1;i<=3;i++)
	    {
	        for(int j=i+1;j<=3;j++)
	        { int temp;
	            if(a[i]<a[j])
	            {
	                temp=a[i];
	                a[i]=a[j];
	                a[j]=temp;
	            }
	             if(b[i]<b[j])
	            {
	                temp=b[i];
	               b[i]=b[j];
	                b[j]=temp;
	            }
	        }
	    }
	    if(a[0]+a[1]>b[0]+b[1])
	    {
	        printf("Alice\n");
	    }else if(b[0]+b[1]>a[0]+a[1])
	    {
	        printf("Bob\n");
	    }else printf("Tie\n");
	}
	return 0;
}


Problem Link: DICEGAME2 Problem - CodeChef