记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 5ms 384.0 KiB
#5 Accepted 160ms 384.0 KiB

信息

递交者
类型
递交
比赛
周末测试2
语言
C++
递交时间
2021-09-24 20:48:26
评测时间
2021-09-24 20:48:26
评测机
分数
100
总耗时
171ms
峰值内存
384.0 KiB