I test the code I found in other answers. 120030221 should not be Palindrom, but the code return true. And it passed the OJ. So.....

```
bool isPalindrome(int x) {
if(x<0)
return false;
while(x)
{
if(x/int(pow(10,int(log10(x))))!=x%10)
return false;
if(int(log10(x)))
x/=pow(10,int(log10(x))-int(log10(x-(x/int(pow(10,int(log10(x)))))*pow(10,int(log10(x))))));
x-=(x/int(pow(10,int(log10(x)))))*int(pow(10,int(log10(x))));
}
return true;
}
```