Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    7 |         if(10>a>=1)
      |            ~~^~
foo.cc:11:17: warning: comparison of constant '10' with boolean expression is always false [-Wbool-compare]
   11 |         if(100>a>=10)
      |            ~~~~~^~~~
foo.cc:11:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   11 |         if(100>a>=10)
      |            ~~~^~
foo.cc:15:18: warning: comparison of constant '100' with boolean expression is always false [-Wbool-compare]
   15 |         if(1000>a>=100)
      |            ~~~~~~^~~~~
foo.cc:15:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   15 |         if(1000>a>=100)
      |            ~~~~^~
foo.cc:19:19: warning: comparison of constant '1000' with boolean expression is always false [-Wbool-compare]
   19 |         if(10000>a>=1000)
      |            ~~~~~~~^~~~~~
foo.cc:19:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   19 |         if(10000>a>=1000)
      |            ~~~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer 0a1 > 2 \ No newline at end of 4ms 284.0 KiB
#3 Wrong Answer 0a1 > 3 \ No newline at end of 3ms 284.0 KiB
#4 Wrong Answer 0a1 > 4 \ No newline at end of 3ms 284.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1022 几位数
语言
C++
递交时间
2023-11-30 21:11:48
评测时间
2023-11-30 21:11:48
评测机
分数
40
总耗时
20ms
峰值内存
412.0 KiB