记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:19: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
    6 |         if (500<=a<1000){
      |             ~~~~~~^~~~~
/in/foo.cc:6:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    6 |         if (500<=a<1000){
      |             ~~~^~~
/in/foo.cc:10:19: warning: comparison of constant '1500' with boolean expression is always true [-Wbool-compare]
   10 |   else if (1000<=a<1500){
      |            ~~~~~~~^~~~~
/in/foo.cc:10:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   10 |   else if (1000<=a<1500){
      |            ~~~~^~~
/in/foo.cc:13:19: warning: comparison of constant '2000' with boolean expression is always true [-Wbool-compare]
   13 |   else if (1500<=a<2000){
      |            ~~~~~~~^~~~~
/in/foo.cc:13:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   13 |   else if (1500<=a<2000){
      |            ~~~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 476.0 KiB
#2 Wrong Answer 1ms 476.0 KiB
#3 Wrong Answer 1ms 340.0 KiB
#4 Wrong Answer 1ms 364.0 KiB
#5 Wrong Answer 1ms 532.0 KiB

信息

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