/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:113:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  113 |   scanf("%d%d",&n,&m);
      |   ~~~~~^~~~~~~~~~~~~~
foo.cc:115:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  115 |     scanf("%d",&x);
      |     ~~~~~^~~~~~~~~
foo.cc:120:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  120 |   for(i=1;i<n;i++)scanf("%d%d",&x,&y),add(x,y),add(y,x);
      |                   ~~~~~^~~~~~~~~~~~~~
foo.cc:124:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  124 |   scanf("%d",&Q);
      |   ~~~~~^~~~~~~~~
foo.cc:126:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  126 |     scanf("%s%d",op,&x);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:128:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  128 |       scanf("%d",&y);
      |       ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 384.0 KiB
#2 Runtime Error Segmentation fault 2ms 396.0 KiB
#3 Runtime Error Segmentation fault 1ms 384.0 KiB
#4 Runtime Error Segmentation fault 34ms 35.75 MiB
#5 Time Exceeded ≥2127ms ≥512.016 MiB
#6 Runtime Error Segmentation fault 1ms 384.0 KiB
#7 Runtime Error Segmentation fault 1ms 384.0 KiB
#8 Runtime Error Segmentation fault 1ms 384.0 KiB
#9 Runtime Error Segmentation fault 1ms 384.0 KiB
#10 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P2020 小Q的苹果树
语言
C++
递交时间
2021-12-19 16:30:11
评测时间
2021-12-19 16:30:11
评测机
分数
0
总耗时
2175ms
峰值内存
512.016 MiB