Wrong Answer

foo.cc: In function 'int main()':
foo.cc:16:26: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
             else if (1<=x<10)
                      ~~~~^~~
foo.cc:16:23: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
             else if (1<=x<10)
                      ~^~~
foo.cc:19:27: warning: comparison of constant '15' with boolean expression is always true [-Wbool-compare]
             else if (10<=x<15)
                      ~~~~~^~~
foo.cc:19:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
             else if (10<=x<15)
                      ~~^~~
foo.cc:22:27: warning: comparison of constant '30' with boolean expression is always true [-Wbool-compare]
             else if (15<=x<30)
                      ~~~~~^~~
foo.cc:22:24: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
             else if (15<=x<30)
                      ~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#4 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#5 Wrong Answer User output longer than standard answer. 2ms 348.0 KiB

信息

递交者
类型
递交
题目
P1021 分段函数
语言
C++
递交时间
2021-09-28 18:35:30
评测时间
2021-09-28 18:35:30
评测机
分数
0
总耗时
12ms
峰值内存
384.0 KiB