/in/foo.c: In function 'type':
/in/foo.c:14: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:14: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:14:56: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if((h==kind||e==kind&&(abs(h-e)>=2))||(h>kind||e>kind&&(abs(h-e)>=2)))
~~~~~~^~~~~~~~~~~~~~~