foo.cc: In function 'int main()':
foo.cc:19:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if(sum[ii]<sum[j]||sum[ii]==sum[j]&&Ch[ii]<Ch[j]||sum[ii]==sum[j]&&Ch[ii]==Ch[j]&&num[ii]>num[j])
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
foo.cc:19:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
19 | if(sum[ii]<sum[j]||sum[ii]==sum[j]&&Ch[ii]<Ch[j]||sum[ii]==sum[j]&&Ch[ii]==Ch[j]&&num[ii]>num[j])
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务