My issue
please help me out with this code. tell me what i am doing wrong
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t,n,count=0,rem;
cin>>t;
while(t--){
cin>>n;
while(n>=1){
rem=n%2;
count=count+rem;
n=n/2;
}
if(count%2==0){
cout<<"even"<<endl;
}
else{
cout<<"odd"<<endl;
}
}
}
Problem Link: Binary Parity Practice Coding Problem - CodeChef