Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:12: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
      ~~~~~~^~~~
/in/foo.cc:6:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
      ~~~^~~
/in/foo.cc:6:26: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
                    ~~~~~~^~~~
/in/foo.cc:6:23: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
                    ~~~^~~
/in/foo.cc:6:40: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
                                  ~~~~~~^~~~
/in/foo.cc:6:37: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if((100>=a>=60)&&(100>=b>=60)&&(100>=c>=60))
                                  ~~~^~~
/in/foo.cc:8:18: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
            ~~~~~~^~~~
/in/foo.cc:8:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
            ~~~^~~
/in/foo.cc:8:32: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                          ~~~~~~^~~~
/in/foo.cc:8:29: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                          ~~~^~~
/in/foo.cc:8:56: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                  ~~~~~~^~~~
/in/foo.cc:8:53: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                  ~~~^~~
/in/foo.cc:8:78: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                        ~~~~~~^~~~
/in/foo.cc:8:75: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                        ~~~^~~
/in/foo.cc:8:102: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                                                ~~~~~~^~~~
/in/foo.cc:8:99: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                                                ~~~^~~
/in/foo.cc:8:116: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                                                              ~~~~~~^~~~
/in/foo.cc:8:113: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(100>=b>=60)&&(c<60))||((100>=a>=60)&&(b<60)&&(100>=c>=60))||((a<60)&&(100>=b>=60)&&(100>=c>=60)))
                                                                                                              ~~~^~~
/in/foo.cc:10:18: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
            ~~~~~~^~~~
/in/foo.cc:10:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
            ~~~^~~
/in/foo.cc:10:58: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
                                                    ~~~~~~^~~~
/in/foo.cc:10:55: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
                                                    ~~~^~~
/in/foo.cc:10:98: warning: comparison of constant '60' with boolean expression is always false [-Wbool-compare]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
                                                                                            ~~~~~~^~~~
/in/foo.cc:10:95: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(((100>=a>=60)&&(b<60)&&(c<60))||((a<60)&&(100>=b>=60)&&(c<60))||((a<60)&&(b<60)&&(100>=c>=60)))
                                                                                            ~~~^~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 388.0 KiB
#2 Accepted 2ms 424.0 KiB
#3 Wrong Answer 2ms 420.0 KiB
#4 Wrong Answer 2ms 384.0 KiB
#5 Wrong Answer 2ms 392.0 KiB
#6 Wrong Answer 2ms 424.0 KiB
#7 Wrong Answer 2ms 376.0 KiB
#8 Wrong Answer 2ms 420.0 KiB
#9 Wrong Answer 2ms 392.0 KiB
#10 Wrong Answer 2ms 380.0 KiB

信息

递交者
类型
递交
题目
P1075 不及格课程数
语言
C++
递交时间
2023-11-10 20:44:07
评测时间
2023-11-10 20:44:07
评测机
分数
10
总耗时
21ms
峰值内存
424.0 KiB