Inputs in given question is not clear

In this question , we have to input testcases separately or the number of times is considered as the number of test cases , please explain !!!

hello @piyushkumar999999 in these type of questions in which you have to take input for the number of test cases there you have to write your program in this way so that your program should print the results in the desired output manner for n times :
and you can do in this way like :
int test;
cin>>test;//in this way it will run your code for t test cases .
while(test–){
//your code here
}

(https://ide.codingblocks.com/s/361091 ) Sir Please check why this code is not working !!

hello @piyushkumar999999
a) first u need to read number of test case.
then u need to iterate that many times .
and each iteration u need to read n and print number of set bits in it.

check ur updated code here->