foo.cc: In function 'int main()':
foo.cc:7:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
7 | if(10>a>=1)
| ~~^~
foo.cc:11:17: warning: comparison of constant '10' with boolean expression is always false [-Wbool-compare]
11 | if(100>a>=10)
| ~~~~~^~~~
foo.cc:11:15: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
11 | if(100>a>=10)
| ~~~^~
foo.cc:15:18: warning: comparison of constant '100' with boolean expression is always false [-Wbool-compare]
15 | if(1000>a>=100)
| ~~~~~~^~~~~
foo.cc:15:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
15 | if(1000>a>=100)
| ~~~~^~
foo.cc:19:19: warning: comparison of constant '1000' with boolean expression is always false [-Wbool-compare]
19 | if(10000>a>=1000)
| ~~~~~~~^~~~~~
foo.cc:19:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
19 | if(10000>a>=1000)
| ~~~~~^~
[Hydro](https://hydro.ac)提供评测服务