foo.cc: In function 'bool is_palindrome(int)':
foo.cc:22:17: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
else if(10<x<=100&&x/10==x%10){ return 1;}
~~~~^~~~~
foo.cc:22:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else if(10<x<=100&&x/10==x%10){ return 1;}
~~^~
foo.cc:23:18: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
else if(100<x<=1000&&x/100==x%10){ return 1;}
~~~~~^~~~~~
foo.cc:23:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else if(100<x<=1000&&x/100==x%10){ return 1;}
~~~^~
foo.cc:24:19: warning: comparison of constant '10000' with boolean expression is always true [-Wbool-compare]
else if(1000<x<=10000&&x/1000==x%10 && (x/10)%10==(x/100)%10){ return 1;}
~~~~~~^~~~~~~
foo.cc:24:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else if(1000<x<=10000&&x/1000==x%10 && (x/10)%10==(x/100)%10){ return 1;}
~~~~^~
foo.cc:25:17: warning: comparison of constant '100000' with boolean expression is always true [-Wbool-compare]
else if(10000<x<=100000&&x/10000==x%10 && (x/10)%10==(x/1000)%10){ return 1;}
~~~~~~~^~~~~~~~
foo.cc:25:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
else if(10000<x<=100000&&x/10000==x%10 && (x/10)%10==(x/1000)%10){ return 1;}
~~~~~^~
[Hydro](https://hydro.ac)提供评测服务