/in/foo.c: In function 'main':
/in/foo.c:11:13: warning: too many arguments for format [-Wformat-extra-args]
printf("29", x);
^~~~
/in/foo.c:14:10: warning: too many arguments for format [-Wformat-extra-args]
printf("28", x);
^~~~
/in/foo.c:8:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (m==2)
^
/in/foo.c:16:10: warning: too many arguments for format [-Wformat-extra-args]
printf("31", x);
^~~~
/in/foo.c:18:10: warning: too many arguments for format [-Wformat-extra-args]
printf("30", x);
^~~~
/in/foo.c:11:6: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("29", x);
^~~~~~~~~~~~~~~