记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:141:40: warning: 'kk' may be used uninitialized [-Wmaybe-uninitialized]
  141 |             if(tree[x].d%2==0)ans+=dist(tree[x].d,tree[x].sonf[kk],xf);
      |                                    ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:138:17: note: 'kk' was declared here
  138 |             int kk;
      |                 ^~
In function 'double dist(int, double, double)',
    inlined from 'int main()' at foo.cc:164:34:
foo.cc:15:26: warning: 'yyyy' may be used uninitialized [-Wmaybe-uninitialized]
   15 |     if(x>y)return (2*pi-x+y)*r[d];
      |                   ~~~~~~~^~~
foo.cc: In function 'int main()':
foo.cc:127:43: note: 'yyyy' was declared here
  127 |         double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
      |                                           ^~~~
In function 'double dist(int, double, double)',
    inlined from 'int main()' at foo.cc:165:21:
foo.cc:15:26: warning: 'xxxx' may be used uninitialized [-Wmaybe-uninitialized]
   15 |     if(x>y)return (2*pi-x+y)*r[d];
      |                   ~~~~~~~^~~
foo.cc: In function 'int main()':
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 [-Wmaybe-uninitialized]
  163 |         yh=2*pi*(ee[tree[y].d-1]-ee[tree[h].d])-(tree[y].wtcl-tree[yyy].wtcl);
      |                                                               ~~~~~~~~~~^~~~
foo.cc:126:21: note: 'yyy' was declared here
  126 |         int x,y,xxx,yyy;
      |                     ^~~
foo.cc:162:35: warning: 'xxx' may be used uninitialized [-Wmaybe-uninitialized]
  162 |         xh=tree[x].wtcl-tree[xxx].wtcl;
      |                         ~~~~~~~~~~^~~~
foo.cc:126:17: note: 'xxx' was declared here
  126 |         int x,y,xxx,yyy;
      |                 ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 412.0 KiB
#2 Accepted 5ms 332.0 KiB
#3 Accepted 6ms 516.0 KiB
#4 Accepted 9ms 412.0 KiB
#5 Accepted 9ms 412.0 KiB
#6 Accepted 9ms 1.074 MiB
#7 Accepted 61ms 1.418 MiB
#8 Accepted 307ms 1.594 MiB
#9 Accepted 225ms 1.629 MiB
#10 Accepted 359ms 2.266 MiB

信息

递交者
类型
递交
题目
P1059 Sunnypig闯穿梭关
语言
C++
递交时间
2023-12-18 23:22:39
评测时间
2023-12-18 23:22:39
评测机
分数
135
总耗时
999ms
峰值内存
2.266 MiB