Runtime Error

foo.cc: In function 'int main()':
foo.cc:14:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  freopen("bus.in","r",stdin);
  ~~~~~~~^~~~~~~~~~~~~~~~~~~~
foo.cc:15:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
  freopen("bus.out","w",stdout);
  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d",&n,&m,&k);
  ~~~~~^~~~~~~~~~~~~~~~~~~~~
foo.cc:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&d[i]);
   ~~~~~^~~~~~~~~~~~
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d %d",&t[i],&a[i],&b[i]);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 404.0 KiB
#2 Runtime Error Segmentation fault 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 416.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB
#6 Runtime Error Segmentation fault 2ms 384.0 KiB
#7 Runtime Error Segmentation fault 2ms 384.0 KiB
#8 Runtime Error Segmentation fault 2ms 384.0 KiB
#9 Runtime Error Segmentation fault 2ms 384.0 KiB
#10 Runtime Error Segmentation fault 2ms 384.0 KiB
#11 Runtime Error Segmentation fault 1ms 384.0 KiB
#12 Runtime Error Segmentation fault 1ms 384.0 KiB
#13 Runtime Error Segmentation fault 1ms 384.0 KiB
#14 Runtime Error Segmentation fault 2ms 384.0 KiB
#15 Runtime Error Segmentation fault 2ms 384.0 KiB
#16 Runtime Error Segmentation fault 2ms 384.0 KiB
#17 Runtime Error Segmentation fault 2ms 384.0 KiB
#18 Runtime Error Segmentation fault 2ms 384.0 KiB
#19 Runtime Error Segmentation fault 2ms 384.0 KiB
#20 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1394 观光公交
语言
C++
递交时间
2021-11-15 09:55:31
评测时间
2021-11-15 09:55:31
评测机
分数
0
总耗时
42ms
峰值内存
416.0 KiB