MAX2 - my code is giving WA

I tried solving this problem but the answer was wrong.
I compared the outputs of numerous test cases with other submitted answers but couldn’t find any differences. please help.
MAX2
https://www.codechef.com/viewsolution/30874779

#include
#include <math.h>
#define llt long long int
using namespace std;

int main()
{
llt n,x,max = 0;
cin>>n>>x;
if(n/10 != 0)
{
max = 0;
}
else{for(int i =0;;i++)
{
llt power = pow(2,i) ;
if(x%power == 0)
{
max = i;
}
else
break;
}
}
cout<<max;
return 0;
}