foo.c: In function 'main':
foo.c:7:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
scanf("%1d",&n);
~~^ ~~
%1ld
foo.c:10:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
if(n%i==0)
^
foo.c:16:15: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%1d",m);
~~^
%1ld
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%1d",&n);
^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务