Test case failed

can you please tell me what mistake i made in the program

hi. pls share ur code

#include
using namespace std;
int main(){

int n;
cin>>n;
int no;
int sum =0;
for(int i=0;i<n;i++){
	
	cin>>no;
	
	while(no!=0){
		int r = no%10;
		sum =  sum+r;
		no=no/10;
		
	}	
		if((sum%2==0 and sum%4==0) ||  (sum%2!=0 and sum%3==0)){
	cout<<"Yes"<<endl;
	
}else if ((sum%2==0 and sum%4!=0) ||  (sum%2!=0 and sum%3!=0)){
	cout<<"No"<<endl;
}
}

}

I have made changes in ur code https://ide.codingblocks.com/s/582739
its working fine now

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.