Help me in solving GDTURN problem

My issue

My code

#include <stdio.h>

int main(void) {
	int n;
	int x,y;
	printf("Enter the  number ");
	scanf("%d",&n);
	if( x+ y>6)
	    printf("yes");
	else printf("no");
	
	return 0;
}


Problem Link: GDTURN Problem - CodeChef

My submission

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--){
	    int x,y;
	    cin>>x>>y;
	    int f;
	    f= x+y;
	    if(f>6){
	        cout<<"YES"<<endl;
	        
	    }
	    else{
	        cout<<"NO"<<endl;
	    }
	    
	    
	}
	return 0;
}