foo.c: In function 'main':
foo.c:20:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
foo.c:30:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
foo.c:39:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
foo.c:48:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
foo.c:58:1: error: expected declaration or statement at end of input
foo.c:58:1: warning: control reaches end of non-void function [-Wreturn-type]