/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc:29:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&i);
   ~~~~~^~~~~~~~~
foo.cc:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",w+i,&son);
         ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:31:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         while (son--){++t[s]; scanf("%d",&s); addedge(i,s);}
                               ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 464.0 KiB
#2 Accepted 1ms 452.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 640.0 KiB
#5 Accepted 2ms 548.0 KiB
#6 Runtime Error Segmentation fault 2ms 476.0 KiB
#7 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1144 小胖守皇宫
语言
C++
递交时间
2021-11-30 15:52:58
评测时间
2021-11-30 15:52:58
评测机
分数
84
总耗时
13ms
峰值内存
640.0 KiB