/in/foo.c: In function 'main':
/in/foo.c:28:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(p<=i&&p+k-1>=i&&q<=j+k-1||p>=i&&p<=i+k-1&&q<=j+k-1||q<j)
~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.c:33:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(x<=p&&x+k-1>=p&&y<=q+k-1||x>=p&&x<=p+k-1&&y<=q+k-1||y<q||x<=i&&x+k-1>=i&&y<=j+k-1||x>=i&&x<=i+k-1&&y<=i+k-1)
~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.c:33:103: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(x<=p&&x+k-1>=p&&y<=q+k-1||x>=p&&x<=p+k-1&&y<=q+k-1||y<q||x<=i&&x+k-1>=i&&y<=j+k-1||x>=i&&x<=i+k-1&&y<=i+k-1)
~~~~~~~~~~~~~~^~~~~~~~~~
/in/foo.c:33:129: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(x<=p&&x+k-1>=p&&y<=q+k-1||x>=p&&x<=p+k-1&&y<=q+k-1||y<q||x<=i&&x+k-1>=i&&y<=j+k-1||x>=i&&x<=i+k-1&&y<=i+k-1)
~~~~~~~~~~~~~~^~~~~~~~~~