class Solution {
public:
int hammingWeight(uint32_t n) {
string aaa = toBinary(n);
in count = ;
for(int i = ; i < sizeof(aaa); i++) {
if(aaa[i] == "")
count++;
}
return count;
} string toBinary(unsigned int val) {
string aaa = "";
for(int i = ; i >= ; i--) {
if(val & ( << i))
aaa += "";
else
aaa += "";
}
return aaa;
} };