记录详情

Runtime Error

foo.c: In function 'main':
foo.c:6:15: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 |         scanf(987);
      |               ^~~
      |               |
      |               int
In file included from foo.c:1:
/nix/store/ck17nf5q2m51d9jpkpsirx91s64vh202-glibc-2.35-163-dev/include/stdio.h:421:42: note: expected 'const char * restrict' but argument is of type 'int'
  421 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 2ms 512.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 256.0 KiB
#4 Runtime Error Segmentation fault 1ms 384.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
2022年迎新赛(第一场)
语言
C
递交时间
2022-08-15 09:11:11
评测时间
2022-08-15 09:11:11
评测机
分数
0
总耗时
9ms
峰值内存
512.0 KiB