/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int read()':
foo.cc:26:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (c=gc;!isdigit(c);c=gc) if (c=='-') f=-1; x=c-'0';
  ^~~
foo.cc:26:48: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  for (c=gc;!isdigit(c);c=gc) if (c=='-') f=-1; x=c-'0';
                                                ^
foo.cc: In function 'int main()':
foo.cc:17:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,s,n) for (register int i=s;i<=n;i++)
                    ^
foo.cc:61:2: note: in expansion of macro 'rep'
  rep(i,1,n) ans+=s[i]/v[i]; printf("%.11lf\n",ans);
  ^~~
foo.cc:61:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  rep(i,1,n) ans+=s[i]/v[i]; printf("%.11lf\n",ans);
                             ^~~~~~
foo.cc:55:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  n=read(); scanf("%lf",&Eu); rep(i,1,n) scanf("%lf%lf%lf",&s[i],&k[i],&u[i]);
            ~~~~~^~~~~~~~~~~
foo.cc:55:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  n=read(); scanf("%lf",&Eu); rep(i,1,n) scanf("%lf%lf%lf",&s[i],&k[i],&u[i]);
                                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'double solve(int, double)':
foo.cc:42:9: warning: 'mid' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return mid;
         ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1942.17844838918, expect 1942.17844839. 2ms 384.0 KiB
#2 Wrong Answer Read 10350.78228590237, expect 10350.78228590. 2ms 384.0 KiB
#3 Wrong Answer Read 30488.05362343930, expect 30488.05362345. 1ms 384.0 KiB
#4 Wrong Answer Read 21564.54215551008, expect 21564.54215545. 2ms 384.0 KiB
#5 Wrong Answer Read 53362.92152700260, expect 53362.92152664. 2ms 384.0 KiB
#6 Wrong Answer Read 29723.09770869136, expect 29723.09770847. 2ms 384.0 KiB
#7 Wrong Answer Read 5013.06389646965, expect 5013.06389641. 2ms 384.0 KiB
#8 Wrong Answer Read 772.06347860340, expect 772.06347867. 2ms 384.0 KiB
#9 Wrong Answer Read 9441.70761294966, expect 9441.70761307. 2ms 384.0 KiB
#10 Wrong Answer Read 13423.41361376642, expect 13423.41361405. 2ms 384.0 KiB
#11 Wrong Answer Read 15743.16521013625, expect 15743.16521009. 4ms 384.0 KiB
#12 Wrong Answer Read 10015.98086771476, expect 10015.98086696. 5ms 452.0 KiB
#13 Wrong Answer Read 15636.22392576440, expect 15636.22392574. 10ms 428.0 KiB
#14 Wrong Answer Read 15181.13546049350, expect 15181.13546072. 22ms 444.0 KiB
#15 Wrong Answer Read 15386.29590475949, expect 15386.29590448. 32ms 476.0 KiB
#16 Wrong Answer Read 13231.33574842994, expect 13231.33574821. 40ms 488.0 KiB
#17 Wrong Answer Read 10073.44729042692, expect 10073.44729028. 81ms 516.0 KiB
#18 Wrong Answer Read 9976.94621681544, expect 9976.94621682. 195ms 608.0 KiB
#19 Wrong Answer Read 9494.71625316615, expect 9494.71625289. 310ms 708.0 KiB
#20 Wrong Answer Read 10668.07621624822, expect 10668.07621588. 382ms 768.0 KiB

信息

递交者
类型
递交
题目
P1805 骑行川藏
语言
C++
递交时间
2021-07-21 09:06:49
评测时间
2021-07-21 09:06:49
评测机
分数
0
总耗时
1109ms
峰值内存
768.0 KiB