记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: warning: implicit declaration of function 'scant' [-Wimplicit-function-declaration]
  scant('''',a,b,c);
  ^~~~~
/in/foo.c:6:8: error: empty character constant
  scant('''',a,b,c);
        ^~
/in/foo.c:6:10: error: empty character constant
  scant('''',a,b,c);
          ^~
/in/foo.c:6:10: error: expected ')' before '\x0'
/in/foo.c:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(a>b);
  ^~
/in/foo.c:8:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(b>c);
     ^~
/in/foo.c:8:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
/in/foo.c:9:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     printf(a,b,c)
     ^~~~~~
/in/foo.c:9:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
     printf(a,b,c)
            ^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:10:5: error: expected ';' before 'else'
     else
     ^~~~
/in/foo.c:11:13: error: stray '\357' in program
      if(a>c);
             ^
/in/foo.c:11:14: error: stray '\274' in program
      if(a>c);
              ^
/in/foo.c:11:15: error: stray '\233' in program
      if(a>c);
               ^
/in/foo.c:17:17: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
          printf(b,a,c)
                 ^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:18:4: error: expected ';' before 'else'
    else
    ^~~~
/in/foo.c:20:21: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
              printf(b,c,a)
                     ^
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:21:5: error: expected ';' before 'else'
     else
     ^~~~

信息

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