/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:141:40: warning: 'kk' may be used uninitialized in this function [-Wmaybe-uninitialized]
  141 |             if(tree[x].d%2==0)ans+=dist(tree[x].d,tree[x].sonf[kk],xf);
      |                                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:15:26: warning: 'yyyy' may be used uninitialized in this function [-Wmaybe-uninitialized]
   15 |     if(x>y)return (2*pi-x+y)*r[d];
      |                   ~~~~~~~^~~
foo.cc:127:43: note: 'yyyy' was declared here
  127 |         double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
      |                                           ^~~~
foo.cc:15:26: warning: 'xxxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
   15 |     if(x>y)return (2*pi-x+y)*r[d];
      |                   ~~~~~~~^~~
foo.cc:127:38: note: 'xxxx' was declared here
  127 |         double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
      |                                      ^~~~
foo.cc:163:73: warning: 'yyy' may be used uninitialized in this function [-Wmaybe-uninitialized]
  163 |         yh=2*pi*(ee[tree[y].d-1]-ee[tree[h].d])-(tree[y].wtcl-tree[yyy].wtcl);
      |                                                               ~~~~~~~~~~^~~~
foo.cc:162:35: warning: 'xxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
  162 |         xh=tree[x].wtcl-tree[xxx].wtcl;
      |                         ~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 11ms 512.0 KiB
#6 Accepted 10ms 1016.0 KiB
#7 Accepted 55ms 1.992 MiB
#8 Accepted 237ms 5.242 MiB
#9 Accepted 123ms 3.867 MiB
#10 Accepted 395ms 6.754 MiB

信息

递交者
类型
递交
题目
P1086 Sunnypig闯穿梭关
语言
C++
递交时间
2022-08-19 09:01:24
评测时间
2022-08-19 09:01:24
评测机
分数
135
总耗时
846ms
峰值内存
6.754 MiB