记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:11: warning: too many arguments for format [-Wformat-extra-args]
     scanf("&d&d&d",a,b,c);
           ^~~~~~~~
/in/foo.c:8:11: error: stray '\357' in program
     if(a>b)
           ^
/in/foo.c:8:12: error: stray '\274' in program
     if(a>b)
            ^
/in/foo.c:8:13: error: stray '\211' in program
     if(a>b)
             ^
/in/foo.c:9:6: error: expected ')' before 'if'
      if(b>c)
      ^~
/in/foo.c:21:19: error: stray '\357' in program
             printf(“&d&d&d",b,c,a);
                   ^
/in/foo.c:21:20: error: stray '\274' in program
             printf(“&d&d&d",b,c,a);
                    ^
/in/foo.c:21:21: error: stray '\210' in program
             printf(“&d&d&d",b,c,a);
                     ^
/in/foo.c:21:22: error: stray '\342' in program
             printf(“&d&d&d",b,c,a);
                      ^
/in/foo.c:21:23: error: stray '\200' in program
             printf(“&d&d&d",b,c,a);
                       ^
/in/foo.c:21:24: error: stray '\234' in program
             printf(“&d&d&d",b,c,a);
                        ^
/in/foo.c:21:31: warning: missing terminating " character
             printf(“&d&d&d",b,c,a);
                               ^
/in/foo.c:21:31: error: missing terminating " character
             printf(“&d&d&d",b,c,a);
                               ^~~~~~~~~
/in/foo.c:23:37: error: stray '\357' in program
                 print("&d&d&d",c,b,a);
                                     ^
/in/foo.c:23:38: error: stray '\274' in program
                 print("&d&d&d",c,b,a);
                                      ^
/in/foo.c:23:39: error: stray '\211' in program
                 print("&d&d&d",c,b,a);
                                       ^
/in/foo.c:23:40: error: stray '\357' in program
                 print("&d&d&d",c,b,a);
                                        ^
/in/foo.c:23:41: error: stray '\274' in program
                 print("&d&d&d",c,b,a);
                                         ^
/in/foo.c:23:42: error: stray '\233' in program
                 print("&d&d&d",c,b,a);
                                          ^
/in/foo.c:8:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(a>b)
     ^~
/in/foo.c:25:0: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
 }
 
/in/foo.c:25:1: error: expected declaration or statement at end of input
 }
 ^

信息

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