Playing with bit

Above link has my code, while executing the code I’m getting error as time limit. Kindly help me out

@Legendankit
hello Ankith,
u r not decrementing t.

Did not get you kindly modify the code.

unable to understand the code and it is not even passing the test case

image
added these two line ur code
a) count should be initialse to 0 for every test case
b) t-- for making t interations

I have done it but den too it is not passing, not even in the normal case

It is working fine -> https://ide.codingblocks.com/s/206658
pls try again
image

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.