Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:9: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
   11 |  if(1<=x<10)
      |     ~~~~^~~
foo.cc:11:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   11 |  if(1<=x<10)
      |     ~^~~
foo.cc:13:10: warning: comparison of constant '15' with boolean expression is always true [-Wbool-compare]
   13 |  if(10<=x<15)
      |     ~~~~~^~~
foo.cc:13:7: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   13 |  if(10<=x<15)
      |     ~~^~~
foo.cc:15:10: warning: comparison of constant '30' with boolean expression is always true [-Wbool-compare]
   15 |  if(15<=x<30)
      |     ~~~~~^~~
foo.cc:15:7: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   15 |  if(15<=x<30)
      |     ~~^~~
foo.cc:7:11: warning: variable 'y' set but not used [-Wunused-but-set-variable]
    7 |     int x,y;
      |           ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > 0 \ No newline at end of 2ms 384.0 KiB
#2 Wrong Answer 0a1 > 1 \ No newline at end of 2ms 256.0 KiB
#3 Wrong Answer 0a1 > 34 \ No newline at end o 2ms 384.0 KiB
#4 Wrong Answer 0a1 > 15 \ No newline at end o 4ms 384.0 KiB
#5 Wrong Answer 0a1 > 170 \ No newline at end 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1022 分段函数
语言
C++
递交时间
2022-07-08 20:22:26
评测时间
2022-07-08 20:22:26
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB