/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:43:40: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   43 |                                 if(minp=it2->se) mind=it2->fi;
      |                                        ^
foo.cc:13:25: warning: unused variable 'now' [-Wunused-variable]
   13 |         double sum=0,di,now=0;
      |                         ^~~
foo.cc:23:16: warning: unused variable 'i' [-Wunused-variable]
   23 |         double i=0;
      |                ^
foo.cc:70:50: warning: 'nowup' may be used uninitialized [-Wmaybe-uninitialized]
   70 |                         sum-=(nowu-(d-it1->fi)/x)*nowup;
      |                              ~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:25:27: note: 'nowup' was declared here
   25 |         double cha,nowu=0,nowup;
      |                           ^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 412.0 KiB
#2 Wrong Answer User output longer than standard answer. 3ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 408.0 KiB
#5 Accepted 3ms 284.0 KiB

信息

递交者
类型
递交
题目
P1253 旅行家的预算
语言
C++
递交时间
2023-08-23 15:45:53
评测时间
2023-08-23 15:45:53
评测机
分数
80
总耗时
18ms
峰值内存
412.0 KiB