• + 1 comment
    int main(){
       unsigned long long int n,count=0,x;
        cin>>n;
        while(n)
        {
            x=n&1;
            if(x==0)
             count++;   
            n>>=1;
        }
        cout<<pow(2,count);
        return 0;
    }
    

    Whats the problem with this code then. It fails in the above case