Wrong Answer

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

信息

递交者
类型
递交
题目
P1021 分段函数
语言
C++
递交时间
2023-11-24 16:27:08
评测时间
2023-11-24 16:27:08
评测机
分数
40
总耗时
19ms
峰值内存
412.0 KiB