Help me in solving CATSDOGS problem

My issue

find mistake in my code,two test cases are failed…

My code

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

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    int c,d,l;
	    cin>>c>>d>>l;
	    int mincase=0;
	    if(c>2*d){
	      mincase=4*(c-d);
	    }
	    else{
	        mincase=4*d;
	    }
	    if(l>=mincase && l<=((c+d)*4) && l%4==0){
	        cout<<"YES"<<endl;    
	    }
	    else{ 
	        cout<<"NO"<<endl;    
	    }

    }

    return 0;
}

Problem Link: Cats and Dogs Practice Coding Problem