Help me in solving FIT problem

My issue

this is show me runtime error , how can i solve it?

My code

#include <stdio.h>
int main(void) {
    int x,a;
    printf("total distance travell by chef =2x");
    printf("enter the value of x=%d");
    scanf("%d",x);
    a=2*x;
    printf("total distance=%d",a);
	return 0;
}


Learning course: Basic Math using C
Problem Link: Fitness Practice Problem in - CodeChef

@tirthavaiya202
u have to do it like this

#include <stdio.h>

int main(void) {
	// your code goes here
	int T,X,i,distance;
	scanf("%d",&T);
	for(i=0; i<T; i++){
	    scanf("%d",&X);
	        distance=10*X;
	        printf("%d\n",distance);
	
	    }
}