InterviewBit Problems   Count Total Set Bits : Unsolved

About the Count Total Set Bits : Unsolved category (1)
What is wrong in this solution, giving correct solution upto 10^7, but giving 2 less for greater values (2)
O(logn) understandable cpp code (1)
Simple solution in java using hint1 (1)
Simple 2 line o(32) (3)
Partially correct can someone help me? (3)
C++ simple two lines of logic! (1)
Constant time complexity in best case using recursion (1)
2 lines o(32) solution (1)
log(A) -Hit Esh (1)
Log n solution by cchecking each position (1)
Partially Correct Answer. whats wrong in my code? (2)