foo.cc: In member function 'void interval::load(func)':
foo.cc:121:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (t = fi(ff.value(l) - f.value(l)))
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:126:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
else if (t = fi(ff.value(r) - f.value(r)))
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:163:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %lf", &n, &alpha); n++;
~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:164:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < n; i++) scanf("%lf", &h[i]);
~~~~~^~~~~~~~~~~~~~
foo.cc:165:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 0; i < n - 1; i++) scanf("%lf", &r[i]);
~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务