What is wrong in this code?

#include
using namespace std;

int main() {
int n,no ;
cin>>no;
for(int i=1;i<=no;i++){
cin>>n;
}
int sumeven=0;
int sumodd=0;
int rem;
for(int i=1;i<=no;i++){

while(n!=0){
rem=rem+n%10;
n=n/10;
if(rem%2==0){
	sumeven+=rem;}
	else{
		sumodd+=rem;
	}





}
if(sumeven%4==0||sumodd%3==0){
	cout<<"Yes";
	cout<<endl;
}

else {

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

}


return 0;

}

hi @aishnee3sapra_80178610ab2d7d84
refer this -->

@aishnee3sapra_80178610ab2d7d84
i hope its clear 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.

can this question be done without using arrays?

hi @aishnee3sapra_80178610ab2d7d84 please check this https://ide.codingblocks.com/s/657615

hope this helps

@aishnee3sapra_80178610ab2d7d84 is the issue resolved?

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.