/in/foo.c: In function 'main':
/in/foo.c:9:11: warning: 'm' flag used with '%d' gnu_scanf format [-Wformat=]
scanf("%md",&n);
^
/in/foo.c:9:11: warning: format '%md' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%md",&n);
~~^ ~~
%mld
/in/foo.c:12:12: warning: 'm' flag used with '%d' gnu_scanf format [-Wformat=]
scanf("%md",&a[i]);
^
/in/foo.c:13:11: warning: passing argument 1 of 'moveleft' from incompatible pointer type [-Wincompatible-pointer-types]
moveleft(a,n);
^
/in/foo.c:3:6: note: expected 'long int *' but argument is of type 'int *'
void moveleft(long int a[],long int n);
^~~~~~~~
/in/foo.c:14:9: warning: passing argument 1 of 'output' from incompatible pointer type [-Wincompatible-pointer-types]
output(a,n);
^
/in/foo.c:4:6: note: expected 'long int *' but argument is of type 'int *'
void output(long int a[],long int n);
^~~~~~
/in/foo.c: In function 'output':
/in/foo.c:29:10: warning: too many arguments for format [-Wformat-extra-args]
printf("%md ",a[i]);
^~~~~~