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)提供评测服务