/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:4:20: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    4 | #define FIN freopen("D://debug//in.txt", "r", stdin);
      |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:64:5: note: in expansion of macro 'FIN'
   64 |     FIN
      |     ^~~
foo.cc:67:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   67 |     scanf("%d%d", &n, &k);
      |     ~~~~~^~~~~~~~~~~~~~~~
foo.cc:73:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   73 |         scanf("%d%d%d", &op, &x, &y);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 768.0 KiB
#2 Wrong Answer Read 22048, expect 9. 5ms 384.0 KiB
#3 Wrong Answer Read 21908, expect 154. 3ms 384.0 KiB
#4 Runtime Error Segmentation fault 4ms 768.0 KiB
#5 Runtime Error Segmentation fault 3ms 768.0 KiB
#6 Wrong Answer Read 21980, expect 781. 2ms 384.0 KiB
#7 Wrong Answer Read 21998, expect 2310. 2ms 384.0 KiB
#8 Wrong Answer Read 22081, expect 2635. 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 4ms 768.0 KiB
#10 Runtime Error Segmentation fault 3ms 768.0 KiB

信息

递交者
类型
递交
题目
P1531 食物链
语言
C++
递交时间
2022-03-15 16:05:50
评测时间
2022-03-15 16:05:50
评测机
分数
0
总耗时
36ms
峰值内存
768.0 KiB