/in/foo.cc: In function 'int main()': /in/foo.cc:29:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if(gs(p[i])>gs(p[0])||(gs(p[i])==gs(p[0]))&&p[i]<p[0]) p[0]=p[i]; ^
By signing up a OPS universal account, you can submit code and join discussions in all online judging services provided by us.
Using your OPS universal account