/ Vijos /

记录详情

Runtime Error

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]
     scanf("%d%d%d",&n,&m,&t);
     ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:55:26: 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:58:14: 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:128:14: 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:138:17: warning: 'kk' may be used uninitialized in this function [-Wmaybe-uninitialized]
             int kk;
                 ^~
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];
                   ~~~~~~~^~~
foo.cc:127:43: note: 'yyyy' was declared here
         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]
     if(x>y)return (2*pi-x+y)*r[d];
                   ~~~~~~~^~~
foo.cc:127:38: note: 'xxxx' was declared here
         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]
         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]
         xh=tree[x].wtcl-tree[xxx].wtcl;
                         ~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 740.0 KiB
#2 Runtime Error Segmentation fault 4ms 776.0 KiB
#3 Runtime Error Segmentation fault 4ms 768.0 KiB
#4 Runtime Error Segmentation fault 4ms 716.0 KiB
#5 Runtime Error Segmentation fault 4ms 692.0 KiB
#6 Runtime Error Segmentation fault 4ms 668.0 KiB
#7 Runtime Error Segmentation fault 4ms 668.0 KiB
#8 Runtime Error Segmentation fault 3ms 768.0 KiB
#9 Runtime Error Segmentation fault 4ms 716.0 KiB
#10 Wrong Answer Standard answer longer than user output. 2ms 412.0 KiB

信息

递交者
类型
递交
题目
P1085 Sunnypig闯三角关
语言
C++
递交时间
2021-08-04 13:29:45
评测时间
2021-08-04 13:29:45
评测机
分数
0
总耗时
39ms
峰值内存
776.0 KiB