记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:15: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
   10 | else if(500<=m<1000)
      |         ~~~~~~^~~~~
/in/foo.cc:10:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   10 | else if(500<=m<1000)
      |         ~~~^~~
/in/foo.cc:12:16: warning: comparison of constant '1500' with boolean expression is always true [-Wbool-compare]
   12 | else if(1000<=m<1500)
      |         ~~~~~~~^~~~~
/in/foo.cc:12:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   12 | else if(1000<=m<1500)
      |         ~~~~^~~
/in/foo.cc:14:16: warning: comparison of constant '2000' with boolean expression is always true [-Wbool-compare]
   14 | else if(1500<=m<2000)
      |         ~~~~~~~^~~~~
/in/foo.cc:14:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   14 | else if(1500<=m<2000)
      |         ~~~~^~~
/in/foo.cc:16:11: warning: statement has no effect [-Wunused-value]
   16 | else (2000<=m);
      |      ~~~~~^~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 484.0 KiB
#2 Wrong Answer 2ms 484.0 KiB
#3 Wrong Answer 1ms 348.0 KiB
#4 Wrong Answer 1ms 344.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P1019 contest1-4 超市促销活动
比赛
2026-11-13 C++实测1
语言
C++
递交时间
2026-11-13 20:45:42
评测时间
2026-11-13 20:45:42
评测机
分数
0
总耗时
9ms
峰值内存
532.0 KiB