Help me in solving TANDJ1 problem

My issue

explain what error is occuring

My code

#include <stdio.h>
#include <stdlib.h>
int main(void) {
	// your code goes here
	int T,a,b,c,d,K,X;
	scanf("%d",&T);
	while(T>0)
	{
	    scanf("%d %d %d %d %d",&a,&b,&c,&d,&K);
	    X= abs(b-d)+abs(a-c);
	    if((X%2)==(K%2))
	    {printf("YES \n");}
	    else{printf("NO \n");}
	    T--;
	}
	return 0;
}


Learning course: Level up from 1* to 2*
Problem Link: Practice Problem in - CodeChef

No error occurs here.
output-

2
1
4
6
4
6
NO

t-1 iteration, which is 1 here.
1
6
3
7
3
YES