/in/foo.c: In function 'type':
/in/foo.c:11:26: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
if((h==kind||e==kind&&(abs(h-e)>=2))||(h>kind||e>kind&&(abs(h-e)>=2)))
^~~
/in/foo.c:11:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if((h==kind||e==kind&&(abs(h-e)>=2))||(h>kind||e>kind&&(abs(h-e)>=2)))
~~~~~~~^~~~~~~~~~~~~~~
/in/foo.c:11:56: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if((h==kind||e==kind&&(abs(h-e)>=2))||(h>kind||e>kind&&(abs(h-e)>=2)))
~~~~~~^~~~~~~~~~~~~~~