/in/foo.c: In function 'main':
/in/foo.c:22:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d",&a[i]);
^
/in/foo.c:36:16: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n",work2(l1,r1,1,n,1));
^
/in/foo.c:19:27: warning: unused variable 'j' [-Wunused-variable]
int n,i,k,m,l,r,l1,r1,v1,j;
^
/in/foo.c:19:16: warning: unused variable 'r' [-Wunused-variable]
int n,i,k,m,l,r,l1,r1,v1,j;
^
/in/foo.c:19:14: warning: unused variable 'l' [-Wunused-variable]
int n,i,k,m,l,r,l1,r1,v1,j;
^