记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:32: error: expected ')' before 'b'
    printf("a=%d,b=%d,c=%d\n",a b c);
                                ^
/in/foo.c:9:20: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",a b c);
                    ^
/in/foo.c:9:25: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",a b c);
                         ^
/in/foo.c:11:32: error: expected ')' before 'c'
    printf("a=%d,b=%d,c=%d\n",a c b);
                                ^
/in/foo.c:11:20: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",a c b);
                    ^
/in/foo.c:11:25: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",a c b);
                         ^
/in/foo.c:14:32: error: expected ')' before 'a'
    printf("a=%d,b=%d,c=%d\n",c a b);          ;
                                ^
/in/foo.c:14:20: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",c a b);          ;
                    ^
/in/foo.c:14:25: warning: format '%d' expects a matching 'int' argument [-Wformat=]
    printf("a=%d,b=%d,c=%d\n",c a b);          ;
                         ^
/in/foo.c:15:3: error: 'else' without a previous 'if'
   else
   ^~~~
/in/foo.c:17:36: error: expected ')' before 'a'
        printf("a=%d,b=%d,c=%d\n",b a c);
                                    ^
/in/foo.c:17:24: warning: format '%d' expects a matching 'int' argument [-Wformat=]
        printf("a=%d,b=%d,c=%d\n",b a c);
                        ^
/in/foo.c:17:29: warning: format '%d' expects a matching 'int' argument [-Wformat=]
        printf("a=%d,b=%d,c=%d\n",b a c);
                             ^
/in/foo.c:20:34: error: expected ')' before 'c'
      printf("a=%d,b=%d,c=%d\n",b c a);
                                  ^
/in/foo.c:20:22: warning: format '%d' expects a matching 'int' argument [-Wformat=]
      printf("a=%d,b=%d,c=%d\n",b c a);
                      ^
/in/foo.c:20:27: warning: format '%d' expects a matching 'int' argument [-Wformat=]
      printf("a=%d,b=%d,c=%d\n",b c a);
                           ^
/in/foo.c:22:2: error: expected declaration or statement at end of input
  return 0;
  ^~~~~~

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
泰院2401程序设计基础作业赛第一场(牛刀小试)
语言
C
递交时间
2024-10-21 14:36:19
评测时间
2024-10-21 14:36:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes