记录详情

Runtime Error

foo.c: In function 'main':
foo.c:6:14: warning: unknown conversion type character ',' in format [-Wformat=]
    6 |     scanf("d%,d%,d%",&a,&b,&c);
      |              ^
foo.c:6:17: warning: unknown conversion type character ',' in format [-Wformat=]
    6 |     scanf("d%,d%,d%",&a,&b,&c);
      |                 ^
foo.c:6:19: warning: spurious trailing '%' in format [-Wformat=]
    6 |     scanf("d%,d%,d%",&a,&b,&c);
      |                   ^
foo.c:6:11: warning: too many arguments for format [-Wformat-extra-args]
    6 |     scanf("d%,d%,d%",&a,&b,&c);
      |           ^~~~~~~~~~
foo.c:17:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   17 |         printf(a,b,c);
      |                ^
      |                |
      |                int
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 284.0 KiB
#2 Runtime Error Segmentation fault 1ms 284.0 KiB
#3 Runtime Error Segmentation fault 1ms 284.0 KiB
#4 Runtime Error Segmentation fault 1ms 284.0 KiB
#5 Runtime Error Segmentation fault 1ms 284.0 KiB

信息

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