foo.c: In function 'sum':
foo.c:8:1: warning: control reaches end of non-void function [-Wreturn-type]
8 | }
| ^
foo.c: In function 'main':
foo.c:12:11: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
12 | int xmin;scanf("%d",&xmin);
| ^~~~~~~~~~~~~~~~~
foo.c:13:11: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
13 | int xmax;scanf("%d",&xmax);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务