Help me in solving TIMELY problem

My issue

what do i do if im getting runtime error

My code

#include <stdio.h>

int main(void) {
    int t,i,n;
    scanf("%d",&t);
    for(i=0;i<t;i++){
        scanf("%d",n);
        if(n>=30){
            printf("yes\n");
        }
        if(n<30){
            printf("no\n");
        }
        
    }
	// your code goes here
	return 0;
}


Problem Link: Reach on Time Practice Coding Problem - CodeChef

scanf(ā€œ%dā€,&n); //you missed ampersand here please check