Help me in solving PAR2 problem

My issue

how

My code

#include <stdio.h>

int main(void) {
	int t,n;
	scanf("%d",&t);
	for(int i=0;i<t;i++){
	    scanf("%d\n",n);
	}
	for(int i=0;i<t;i++){
	 if((n%2)==0){
	        printf("yes\n");
	    }
	    else printf("no\n");
} 
}


Learning course: 500 difficulty rating
Problem Link: Parity Practice Problem in - CodeChef

@vishrut11a
U have to do it like this

#include <stdio.h>

int main(void) {
	// your code goes here
	int t;
	scanf("%d",&t);
	while(t--)
	{
	    int x;
	    scanf("%d",&x);
	    if(x%2==0)
	    {
	        printf("Yes\n");
	    }
	    else
	    {
	        printf("No\n");
	    }
	}

}