/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&n) ;
~^ ~~
%ld
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&a[i]);
~^ ~~~~~
%ld
/in/foo.c:15:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d ",a[i]);
~^ ~~~~
%ld
/in/foo.c:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<n;i++)
^~~
/in/foo.c:16:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
printf("\n");
^~~~~~