Help me in solving GDTURN problem

My issue

corect this code

My code

#include <stdio.h>

int main(void) 
{
    int t,i,x,y;
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
	scanf("%d %d",&x,&y);
	}
	for(i=0;i<t;i++)
	{
	if((x+y)>6)
	{
	    
	    
	    printf("YES");
	    
	}
	else if((x+y)<=6)
	{
	    printf("NO");
	}
	}
	return 0;
}


Problem Link: GDTURN Problem - CodeChef

@samdivya1305
U have to print ā€œ\nā€ as well to leave the line after each output.