/ Vijos /

记录详情

Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 16ms 19.527 MiB
#2 Accepted 16ms 19.465 MiB
#3 Accepted 17ms 19.441 MiB
#4 Accepted 17ms 19.512 MiB
#5 Accepted 17ms 19.504 MiB
#6 Accepted 16ms 19.504 MiB
#7 Accepted 16ms 19.418 MiB
#8 Accepted 17ms 19.559 MiB
#9 Accepted 25ms 19.746 MiB
#10 Accepted 22ms 19.598 MiB

信息

递交者
类型
递交
题目
P1839 月下柠檬树
语言
C++
递交时间
2021-07-21 09:36:31
评测时间
2021-07-21 10:01:12
评测机
分数
100
总耗时
185ms
峰值内存
19.746 MiB