Please note that the original version if(10 < a < 0)is absolutely legal. He just does not do what you (reasonably) think he does. You are fortunate that the compiler acknowledged this as a possible mistake and warned you about it.
< , +. , a + b + c (a + b) + c, a < b < c (a < b) < c. < int 0, , 1, . , , 0, c, 1 , c.
, , , , , . , , , , , "" . ( , , (a < b) < c).)
, a b b c:
a < b && b < c
( , Python, a < b < c a<b && b<c, . C .)