记录详情

Runtime Error

foo.c: In function 'main':
foo.c:7:13: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    7 |     scanf("%d%c%d",a,c,b);
      |            ~^      ~
      |             |      |
      |             int *  int
foo.c:7:15: warning: format '%c' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=]
    7 |     scanf("%d%c%d",a,c,b);
      |              ~^      ~
      |               |      |
      |               char * int
foo.c:7:17: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'int' [-Wformat=]
    7 |     scanf("%d%c%d",a,c,b);
      |                ~^      ~
      |                 |      |
      |                 int *  int
foo.c:7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |     scanf("%d%c%d",a,c,b);
      |     ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:5: warning: 'c' is used uninitialized in this function [-Wuninitialized]
    7 |     scanf("%d%c%d",a,c,b);
      |     ^~~~~~~~~~~~~~~~~~~~~
foo.c:7:5: warning: 'a' is used uninitialized in this function [-Wuninitialized]
foo.c:7:5: warning: 'b' is used uninitialized in this function [-Wuninitialized]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 3ms 384.0 KiB

信息

递交者
类型
自测
题目
P1000 语言学习
语言
C
递交时间
2021-12-28 22:21:35
评测时间
2021-12-28 22:21:35
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB