记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:8: error: expected expression before '%' token
  scanf(%d%d%d,&a,&b,&c);
        ^
/in/foo.c:8:6: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  if(a>b&b>c)
     ~^~
/in/foo.c:12:11: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
  else if(c>a&a>b)
          ~^~
/in/foo.c:20:9: warning: missing terminating " character
  printf("三个整数中间值是:%d,mid);
         ^
/in/foo.c:20:9: error: missing terminating " character
  printf("三个整数中间值是:%d,mid);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:22:2: error: expected expression before 'int'
  int a,b,c,max;
  ^~~
/in/foo.c:37:9: warning: missing terminating " character
  printf("三个整数中最大的是:&d,max);
         ^
/in/foo.c:37:9: error: missing terminating " character
  printf("三个整数中最大的是:&d,max);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.c:39:1: error: expected declaration or statement at end of input
 }
 ^
/in/foo.c:5:12: warning: variable 'mid' set but not used [-Wunused-but-set-variable]
  int a,b,c,mid;
            ^~~

信息

递交者
类型
递交
题目
A1-2 分支结构练习:三数的特征值
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-15 09:50:40
评测时间
2024-08-15 09:50:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes