Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:12: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
     if(1<=x<10)
        ~~~~^~~
/in/foo.cc:16:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     if(1<=x<10)
        ~^~~
/in/foo.cc:20:13: warning: comparison of constant '15' with boolean expression is always true [-Wbool-compare]
     if(10<=x<15)
        ~~~~~^~~
/in/foo.cc:20:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     if(10<=x<15)
        ~~^~~
/in/foo.cc:24:13: warning: comparison of constant '30' with boolean expression is always true [-Wbool-compare]
     if(15<=x<30)
        ~~~~~^~~
/in/foo.cc:24:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     if(15<=x<30)
        ~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 404.0 KiB
#2 Wrong Answer 2ms 376.0 KiB
#3 Wrong Answer 1ms 324.0 KiB
#4 Accepted 1ms 400.0 KiB
#5 Accepted 1ms 364.0 KiB

信息

递交者
类型
递交
题目
P1021 分段函数
语言
C++
递交时间
2021-11-24 19:05:31
评测时间
2021-11-24 19:05:31
评测机
分数
40
总耗时
9ms
峰值内存
404.0 KiB