problem in basic mathematics (c)

,
#include <stdio.h>

int main(void) {
	int t,n,x;
	int cost;
	scanf("%d",&n);
	while (t--){
	    scanf("%d%d",&n,&x);
	    cost = n*x;
	    if(cost>=10000&&cost<=99999){
	        printf("YES\n");
	    }
	    else{
	        printf("NO\n");
	    }
	}
	return 0;
}

I wrote this code in the final solution of practice which, according to me is correct still, it is not accepting the solution. Link to the problem: CodeChef: Practical coding for everyone

in the starting you have taken input ‘n’ instead of ‘t’ test cases .

here you can declared t-- instead of doing condition in while loop

scanf(“%d”,&t);