Problem Statement : https://www.codechef.com/problems/TWOGRS

This question is from previous contest. it isn’t part of any running contest.
therefore please give the answer that why i am getting WA in that question.

code :

#include<bits/stdc++.h>
using namespace std;
//two groups

#define MOD (1000000007)
//Data-type
#define ui unsigned int
#define d(str) cout<<#str<<" : “<<str<<”\n"
#define nl cout<<‘\n’
#define fast ios_base::sync_with_stdio(0)
#define mem(a,b) memset(a,b,sizeof(a))
#define arr_sort(a,n) stable_sort(a,a+n)
#define _sort(a) stable_sort(a.begin(),a.end())
#define test int t=0,i=0,j=0;
cin>>t;
while(t–)
#define min(a,b) ((a)>(b)?(b):(a))

int main()
{
fast;
int a,b,c,sum;
test
{
cin>>a>>b>>c;
sum=a+2b+3c;
if(sum&1)
cout<<“NO”;
else
{
int x,k=sum;

        k/=2;
        x=k/3;
        k=k-3*min(x,c);

        x=k/2;
        k=k-2*min(x,b);

        if(k <= a)
            cout<<"YES";
        else
            cout<<"NO";
    }
    nl;
}
return 0;

}