Help me in solving GDTURN problem

My issue

what is error come in my code I can’t understand plz help me

My code

#include <stdio.h>

int main() {
int x;
int y ;

int sum=x+y;
 if (sum=x+y>6){
     printf("Yes");
 }
 else{
     printf("No");
 }



	return 0;
}


Problem Link: GDTURN Problem - CodeChef

@anu321
you need to input x and y

@anu321 you forget to take input.
step 1 -first you need to declare and read the number of testcase .
step-2 declare and read x and y…
step-3 the sum of the number dice(x+y).
step-4 use if-else statement for the above condition .
step-5 if (x+y <= 6) then print ‘NO’ otherwise print ‘YES’…

include <stdio.h>

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