/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:40:29: warning: narrowing conversion of 'y[i]' from 'long long int' to 'double' inside { } [-Wnarrowing]
    b[++cnt]=(bian){i,i-1,y[i]};
                          ~~~^
foo.cc:47:38: warning: narrowing conversion of 'yy[i]' from 'long long int' to 'double' inside { } [-Wnarrowing]
    b[++cnt]=(bian){i+bas,i+bas-1,yy[i]};
                                  ~~~~^
foo.cc:34:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld%lld%lld",&n,&m,&x,&xx);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&y[i]);
   ~~~~~^~~~~~~~~~~~~~
foo.cc:45:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld",&yy[i]);
   ~~~~~^~~~~~~~~~~~~~~
foo.cc:106:26: warning: 'to2' may be used uninitialized in this function [-Wmaybe-uninitialized]
    b[++cnt]=(bian){l1,to2+bas,m2};
                       ~~~^~~~
foo.cc:102:26: warning: 'to1' may be used uninitialized in this function [-Wmaybe-uninitialized]
    b[++cnt]=(bian){l1,to1+bas,m1};
                       ~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 3000090.86, expect 2000090.86. 1ms 384.0 KiB

信息

递交者
类型
自测
题目
P1466 电缆建设
语言
C++
递交时间
2021-11-14 17:09:29
评测时间
2021-11-14 17:09:29
评测机
分数
0
总耗时
1ms
峰值内存
384.0 KiB