/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |  scanf("%d%d%d%d%d%d",&l1,&l2,&l3,&c1,&c2,&c3);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:19:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   19 |  scanf("%d%d",&s,&t);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:31:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |    scanf("%d",&a[i]);
      |    ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 12ms 396.0 KiB
#5 Accepted 30ms 384.0 KiB
#6 Runtime Error Segmentation fault 31ms 512.0 KiB
#7 Runtime Error Segmentation fault 32ms 512.0 KiB
#8 Runtime Error Segmentation fault 33ms 536.0 KiB
#9 Runtime Error Segmentation fault 32ms 632.0 KiB
#10 Runtime Error Segmentation fault 31ms 632.0 KiB

信息

递交者
类型
递交
题目
P1292 火车票
语言
C++
递交时间
2022-03-08 22:12:33
评测时间
2022-03-08 22:12:33
评测机
分数
50
总耗时
214ms
峰值内存
632.0 KiB