foo.c: In function 'main':
foo.c:8:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%d %d",&L,&R);
~^ ~~
%ld
foo.c:8:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
scanf("%d %d",&L,&R);
~^ ~~
%ld
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&L,&R);
^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务