记录详情

Runtime Error

foo.c: In function 'main':
foo.c:11:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   11 |  memset(q,0,4*n);
      |  ^~~~~~
foo.c:11:2: warning: incompatible implicit declaration of built-in function 'memset'
foo.c:3:1: note: include '<string.h>' or provide a declaration of 'memset'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main()
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d",&n);
      |  ^~~~~~~~~~~~~~
foo.c:14:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   14 |  scanf("%d %d",&a,&b);
      |  ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 17, expect 38. 1ms 256.0 KiB
#2 Runtime Error Aborted 2ms 384.0 KiB
#3 Runtime Error Aborted 3ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Accepted 20ms 760.0 KiB

信息

递交者
类型
递交
题目
3 有两个孩子的家庭个数
语言
C
递交时间
2022-03-20 15:34:47
评测时间
2022-03-20 15:34:47
评测机
分数
40
总耗时
30ms
峰值内存
760.0 KiB