foo.cc: In function 'int main()':
foo.cc:50:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&t);
~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:54:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&r[i]),ee[i]=ee[i-1]+r[i];
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:57:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%d%d",&tree[i].x,&tree[i].y,&tree[i].d,&tree[i].fa[0]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:125:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lf%d%lf",&x,&xf,&y,&yf);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:135:8: warning: 'kk' may be used uninitialized in this function [-Wmaybe-uninitialized]
int kk;
^~
foo.cc:15:23: warning: 'yyyy' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(x>y)return (2*pi-x+y)*r[d];
~~~~~~~^~~
foo.cc:124:37: note: 'yyyy' was declared here
double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
^~~~
foo.cc:15:23: warning: 'xxxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(x>y)return (2*pi-x+y)*r[d];
~~~~~~~^~~
foo.cc:124:32: note: 'xxxx' was declared here
double ans,xx,yy,xf,yf,xh,yh,xxxx,yyyy,hh;
^~~~
foo.cc:160:67: 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);
~~~~~~~~~~^~~~
foo.cc:159:29: warning: 'xxx' may be used uninitialized in this function [-Wmaybe-uninitialized]
xh=tree[x].wtcl-tree[xxx].wtcl;
~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务