#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t–)
{
int a;
cin>>a;
int b=a;
while((a&(a-1))!=0)
a--;
b=b-a;
cout<<b+1<<endl;
}
}
according to me it is rih=ght why it is showing wrong answers?