记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:20:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |     scanf("%d%d%d%d",&n,&m,&c1,&c2);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:22:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |         scanf("%d",&wei[i]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   28 |         scanf("%d%d%d",&a,&b,&c);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 1.25 MiB
#2 Runtime Error Segmentation fault 2ms 1.25 MiB
#3 Runtime Error Segmentation fault 2ms 1.25 MiB
#4 Runtime Error Segmentation fault 3ms 384.0 KiB
#5 Runtime Error Segmentation fault 2ms 384.0 KiB

信息

递交者
类型
递交
题目
4-1 旅游住处
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 20:59:34
评测时间
2022-08-07 20:59:35
评测机
分数
0
总耗时
13ms
峰值内存
1.25 MiB