/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",&x);
^
/in/foo.c:23:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<k;i++)
^~~
/in/foo.c:25:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
a[k-1]=t;
^
/in/foo.c:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<k;i++)
^~~
/in/foo.c:28:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
printf("\n");
^~~~~~