Whats wrong in this code?


#1

int Solution::solve(int A) {
int i=0;
while((1<<i)&A==0){
i++;
}
return i;
}