why is it showing TLE
#include
using namespace std;
void countset(int a, int b){
int cnt=0;
for(int i=a;i<=b;i++){
while(i>0){
if((i&1)==1){
cnt++;
}
i >>= 1;
}
}
cout<<cnt<<endl;
}
int main() {
int t;
cin>>t;
while(t–){
int a,b;
cin>>a>>b;
countset(a,b);
}
return 0;
}