it shows tle
#include
using namespace std;
int main() {
int q;
cin>>q;
while(q–){
int a,b;
cin>>a>>b;
int res=0;
for(int i=a;i<=b;i++){
int cnt =0;
while(i>0){
if((i&1)==1){
cnt++;
}
i>>1;
}
res+=cnt;
}
cout<<res<<endl;
}
return 0;
}