I am able to run code for odd even question in sublime and it is running properly but here it is not working. Can you please help me what is wrong within the code?

#code
I have put round brackets as # was making include headline.

(#include
using namespace std;
typedef long long ll;
int main() {
int n;

cin>>n;
while(n--){
    int odd=0;
    int even=0;
    ll x;
    cin>>x;
    while(x>0){
        
        int s=x%10;
         x=x/10;
        if(s%2==0){
            even=even+s;
        }
        else if(s%2!=0){
            odd=odd+s;
            
        }
        
    }
   
    
    if(odd%3==0 || even%6==0){
    cout<<"Yes"<<endl;
    continue;
    }
    else{
        cout<<"No"<<endl;
        continue;
    }}


return 0;

})

hi @rushank570 please share your code by saving it on ide.codingblocks.com and share the link generated.

ok I will share the link

hi @rushank570 change this line
image
odd should be divisible by 3 OR even should be divisible by 4

@rushank570 you got that error in IDE because you did not give any input, so make sure you are giving the proper input

Thanks the problem was that 4.

@rushank570 dont forget to mark the doubt as resolved!