/in/foo.c: In function 'main':
/in/foo.c:5:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&n);
^
/in/foo.c:7:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&a[i]);
^
/in/foo.c:13:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d",m);
^
/in/foo.c:13:2: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d",m);
^~~~~~~~~~~~~~