记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:8: warning: too many arguments for format [-Wformat-extra-args]
  scanf("&d&d&d",a,b,c);
        ^~~~~~~~
/in/foo.c:9:11: warning: too many arguments for format [-Wformat-extra-args]
    printf("&d&d",b,a);
           ^~~~~~
/in/foo.c:12:12: warning: too many arguments for format [-Wformat-extra-args]
     printf("&d&d",c,a);
            ^~~~~~
/in/foo.c:14:12: error: stray '\342' in program
     printf(“&d&d",b,a);
            ^
/in/foo.c:14:13: error: stray '\200' in program
     printf(“&d&d",b,a);
             ^
/in/foo.c:14:14: error: stray '\234' in program
     printf(“&d&d",b,a);
              ^
/in/foo.c:14:16: error: 'd' undeclared (first use in this function)
     printf(“&d&d",b,a);
                ^
/in/foo.c:14:16: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:19: warning: missing terminating " character
     printf(“&d&d",b,a);
                   ^
/in/foo.c:14:19: error: missing terminating " character
     printf(“&d&d",b,a);
                   ^~~~~~~
/in/foo.c:15:3: error: expected ')' before 'else'
   else
   ^~~~
/in/foo.c:17:12: warning: missing terminating " character
     printf("&d&d”,a,b)
            ^
/in/foo.c:17:12: error: missing terminating " character
     printf("&d&d”,a,b)
            ^~~~~~~~~~~~~~~
/in/foo.c:24:0: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
 }
 
/in/foo.c:7:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(a>b)
    ^
/in/foo.c:24:1: error: expected declaration or statement at end of input
 }
 ^

信息

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