foo.cc: In function 'bool check(double)':
foo.cc:13:24: warning: unused variable 'maxx' [-Wunused-variable]
13 | double sum1, sum2, maxx;
| ^~~~
foo.cc: In function 'int main()':
foo.cc:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf("%d%d", &n, &L);
| ~~~~~^~~~~~~~~~~~~~~~
foo.cc:27:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%lf", &a[i]);
| ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务