Wrong Answer

foo.cc: In function 'int main()':
foo.cc:19:12: warning: comparison of constant '15' with boolean expression is always true [-Wbool-compare]
   19 |    if(10<=x<15)
      |       ~~~~~^~~
foo.cc:19:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   19 |    if(10<=x<15)
      |       ~~^~~
foo.cc:25:13: warning: comparison of constant '30' with boolean expression is always true [-Wbool-compare]
   25 |     if(15<=x<30)
      |        ~~~~~^~~
foo.cc:25:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   25 |     if(15<=x<30)
      |        ~~^~~
foo.cc:5:8: warning: unused variable 'y' [-Wunused-variable]
    5 |  int x,y;
      |        ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 380.0 KiB
#2 Accepted 2ms 376.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Wrong Answer Read 29, expect 15. 2ms 384.0 KiB
#5 Wrong Answer Read 59, expect 170. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1022 分段函数
语言
C++
递交时间
2022-07-13 12:06:46
评测时间
2022-07-13 12:06:46
评测机
分数
60
总耗时
11ms
峰值内存
384.0 KiB