Not passing the testcases

#include
using namespace std;
int main(){
int N;
int odsum=0;
int evsum=0;
int n;
cin>>n;

for(int i=1;i<=n;i++){
cin>>N;
while(N!=0){
	
	int rem=N%10;
	N=N/10;
    if(rem%2==0){
	  evsum=evsum+rem;
	}
	else if(rem%2!=0){
		 odsum=odsum+rem;
	}
	}



if(evsum%4==0||odsum%3==0){
	cout<<"Yes"<<endl;
}
else{
	cout<<"No";
}
}

}

https://online.codingblocks.com/app/player/246132/content/235737/10066/code-challenge

@sbhardwaj1be21_2a991b329433c059 add endl in printing No
and define these

int odsum=0;
int evsum=0;

inside for loop it should be 0 for each new test case

1 Like

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.