/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:51:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   51 |     scanf("%d%d%d",&n,&m,&t);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:55:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   55 |         scanf("%d",&r[i]),ee[i]=ee[i-1]+r[i];
      |         ~~~~~^~~~~~~~~~~~
foo.cc:58:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   58 |         scanf("%lf%lf%d%d",&tree[i].x,&tree[i].y,&tree[i].d,&tree[i].fa[0]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:128:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  128 |         scanf("%d%lf%d%lf",&x,&xf,&y,&yf);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:138:17: warning: 'kk' may be used uninitialized in this function [-Wmaybe-uninitialized]
  138 |             int kk;
      |                 ^~
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 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB
#5 Accepted 7ms 512.0 KiB
#6 Accepted 7ms 1.0 MiB
#7 Accepted 50ms 1.375 MiB
#8 Accepted 219ms 1.742 MiB
#9 Accepted 158ms 1.617 MiB
#10 Accepted 307ms 2.117 MiB

信息

递交者
类型
递交
题目
P1086 Sunnypig闯穿梭关
语言
C++
递交时间
2022-07-22 22:01:18
评测时间
2022-07-22 22:01:18
评测机
分数
135
总耗时
766ms
峰值内存
2.117 MiB