记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:6:25: error: expected ‘)’ before ‘,’
    6 |         scanf("%d %d %d",&a,&b,&c);
      |              ~          ^~
      |                         )
foo.c:6:17: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=]
    6 |         scanf("%d %d %d",&a,&b,&c);
      |                ~^
      |                 |
      |                 int *
foo.c:6:20: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=]
    6 |         scanf("%d %d %d",&a,&b,&c);
      |                   ~^
      |                    |
      |                    int *
foo.c:6:23: warning: format ‘%d’ expects a matching ‘int *’ argument [-Wformat=]
    6 |         scanf("%d %d %d",&a,&b,&c);
      |                      ~^
      |                       |
      |                       int *
foo.c:22:24: error: expected ‘)’ before ‘,’
   22 |     printf("%d %d %d\n",&a,&b,&c);
      |           ~            ^~
      |                        )
foo.c:22:14: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
   22 |     printf("%d %d %d\n",&a,&b,&c);
      |             ~^
      |              |
      |              int
foo.c:22:17: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
   22 |     printf("%d %d %d\n",&a,&b,&c);
      |                ~^
      |                 |
      |                 int
foo.c:22:20: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
   22 |     printf("%d %d %d\n",&a,&b,&c);
      |                   ~^
      |                    |
      |                    int

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-17 18:43:43
评测时间
2024-08-17 18:43:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes