/ 答案 /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:142:27: warning: 'kk' may be used uninitialized in this function [-Wmaybe-uninitialized]
             else ans+=dist(tree[x].d,xf,tree[x].sonf[kk]);
                       ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:15:26: warning: 'yyyy' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if(x>y)return (2*pi-x+y)*r[d];
                   ~~~~~~~^~~
/in/foo.cc:127:43: note: 'yyyy' was declared here
         double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
                                           ^~~~
/in/foo.cc:15:26: warning: 'xxxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if(x>y)return (2*pi-x+y)*r[d];
                   ~~~~~~~^~~
/in/foo.cc:127:38: note: 'xxxx' was declared here
         double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
                                      ^~~~
/in/foo.cc:163:73: warning: 'yyy' may be used uninitialized in this function [-Wmaybe-uninitialized]
         yh=2*pi*(ee[tree[y].d-1]-ee[tree[h].d])-(tree[y].wtcl-tree[yyy].wtcl);
                                                               ~~~~~~~~~~^~~~
/in/foo.cc:162:35: warning: 'xxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
         xh=tree[x].wtcl-tree[xxx].wtcl;
                         ~~~~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 544.0 KiB
#2 Accepted 1ms 440.0 KiB
#3 Accepted 2ms 400.0 KiB
#4 Accepted 4ms 512.0 KiB
#5 Accepted 4ms 460.0 KiB
#6 Accepted 4ms 1.078 MiB
#7 Accepted 29ms 1.426 MiB
#8 Accepted 189ms 1.09 MiB
#9 Accepted 124ms 1.152 MiB
#10 Accepted 246ms 1.352 MiB

信息

递交者
类型
递交
题目
P1033 Sunnypig闯穿梭关
语言
C++
递交时间
2021-12-01 21:50:14
评测时间
2021-12-01 21:50:14
评测机
分数
135
总耗时
608ms
峰值内存
1.426 MiB