Help me in solving GDTURN problem

My issue

My code

#include<stdio.h>
void main()
{
    int i,j;
    scanf("%d %d",&i,&j);
    if(i+j>6)
    {
        printf("YES\n");
    }
    else
    {
        printf("NO");
    }
}

Problem Link: GDTURN Problem - CodeChef

You have not written the code for printing the number of test cases…

include <stdio.h>

int main(void) {
int T;
scanf(“%d”,&T);
while(T–){
int x,y;
scanf(“%d%d”,&x,&y);
if(x+y>6)
{
printf(“\nYES”);
}
else
{
printf(“\nNO”);
}
}
return 0;
}

@sarayup You have to take test case, then you have to write your main code in a loop counting test cases. Like –

int main(void)
{
int t; scanf(“%d”,&t);
while(t --)
{
int i, j ;
scanf(“%d %d”,&i,&j);
if(i+j > 6)
{
printf(“YES\n”);
}
else
{
printf(“NO”);
}
}
return 0;
}