/in/foo.c: In function 'main':
/in/foo.c:12:20: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
int xmax; scanf("%d",xmax);
^
/in/foo.c:13:20: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
int xmin; scanf("%d",xmin);
^
/in/foo.c:17:3: warning: statement with no effect [-Wunused-value]
for(x;x<=xmax;x++)
^~~
/in/foo.c:19:4: warning: statement with no effect [-Wunused-value]
for(x;x>0;x=x/10)
^~~
/in/foo.c:9:6: warning: variable 'y' set but not used [-Wunused-but-set-variable]
int y;
^
/in/foo.c:6:6: warning: unused variable 'cnt' [-Wunused-variable]
int cnt=0;
^~~
/in/foo.c:12:12: warning: 'xmax' is used uninitialized in this function [-Wuninitialized]
int xmax; scanf("%d",xmax);
^~~~~~~~~~~~~~~~
/in/foo.c:13:12: warning: 'xmin' is used uninitialized in this function [-Wuninitialized]
int xmin; scanf("%d",xmin);
^~~~~~~~~~~~~~~~
/in/foo.c:37:16: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
b[l++] = a[i];
~~~~~~~^~~~~~