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)提供评测服务