Runtime Error in c while solving problem CRDS - cards

can somebody tell me why i am getting runtime error for the below C program:

#include<stdio.h>

int main(void){
	long long int N,T,x=0;
	scanf("%d",&T);
	while(T--){
		scanf("%d",&N);
		if(N%2 == 0){
			x = (N*((N/2)+N)) + N/2;
		}
		else{
			x = N*(((N/2)+1)+N);
		}
		printf("ll%d\n",x);
	}
	return 0;
}

you’ve declared N,T as long long int but taking int (%d) as input in the scanf. Change it to %lld

//