Wrong Answer

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

信息

递交者
类型
递交
题目
P1026 超市促销活动
语言
C++
递交时间
2023-12-07 21:43:25
评测时间
2023-12-07 21:43:25
评测机
分数
20
总耗时
21ms
峰值内存
412.0 KiB