Compile Error

foo.cc: In function 'int main()':
foo.cc:10:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   10 |         if(b<c<d)
      |            ~^~
foo.cc:14:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   14 |         if(b<c>d)
      |            ~^~
foo.cc:18:13: error: lvalue required as left operand of assignment
   18 |         if(b<c=d)
      |            ~^~
foo.cc:22:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   22 |         if(b=c>d)
      |            ~^~~~
foo.cc:26:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   26 |         if(b=c<d)
      |            ~^~~~
foo.cc:30:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   30 |         if(b=c=d)
      |            ~^~~~
foo.cc:34:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   34 |         if(b>c>d)
      |            ~^~
foo.cc:38:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   38 |         if(b>c<d)
      |            ~^~
foo.cc:42:13: error: lvalue required as left operand of assignment
   42 |         if(b>c=d)
      |            ~^~
foo.cc:46:13: error: lvalue required as left operand of assignment
   46 |         if(b<c=d)
      |            ~^~
foo.cc:50:13: error: lvalue required as left operand of assignment
   50 |         if(b>c=d)
      |            ~^~
foo.cc:54:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   54 |         if(b=c=d)
      |            ~^~~~
foo.cc:58:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   58 |         if(b=c>d)
      |            ~^~~~
foo.cc:62:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   62 |         if(b>c>d)
      |            ~^~
foo.cc:66:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   66 |         if(b<c>d)
      |            ~^~
foo.cc:70:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   70 |         if(b=c<d)
      |            ~^~~~
foo.cc:74:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   74 |         if(b>c<d)
      |            ~^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1017 3位升序数
语言
C++
递交时间
2023-11-22 13:45:38
评测时间
2023-11-22 13:45:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes