/in/foo.c:3:1: warning: return type defaults to 'int' [-Wimplicit-int]
main()
^~~~
/in/foo.c: In function 'main':
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&n);
^
/in/foo.c:10:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&m);
^
/in/foo.c:30:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",max-1);
^