Delhi odd even prob

#include
using namespace std;
int main()
{
int r,n,a[10],l=0,t;
cin>>n;
if(n<=1000)
{

for(int i=0;i<n;i++)
{
	cin>>a[i];
}
for(int i=0;i<n;i++)
{
	r=0;
	l=0;
	t=a[i];
	while(t<=0)
	{
	
	r=t%10;
	l=l+r;
	t=t/10;
}
	if(l%4==0||l%3==0)
	{
	cout<<"Yes"<<endl;

	}	
	else
	cout<<"No"<<endl;	

	
}

}
}

WHat is problem with this code??

You have taken the sum of all the digits.
In the question it is asked to take separate sum for even and the odd digits.