记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:3:2: error: 'inta' undeclared (first use in this function)
  inta,b,c;
  ^~~~
/in/foo.c:3:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:3:7: error: 'b' undeclared (first use in this function)
  inta,b,c;
       ^
/in/foo.c:3:6: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  inta,b,c;
      ^
/in/foo.c:3:9: error: 'c' undeclared (first use in this function)
  inta,b,c;
         ^
/in/foo.c:3:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  inta,b,c;
        ^
/in/foo.c:4:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d%d%d,&a,&b,&c);
  ^~~~~
/in/foo.c:4:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:4:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:4:8: warning: missing terminating " character
  scanf("%d%d%d,&a,&b,&c);
        ^
/in/foo.c:4:8: error: missing terminating " character
  scanf("%d%d%d,&a,&b,&c);
        ^~~~~~~~~~~~~~~~~~
/in/foo.c:5:2: error: expected expression before 'if'
  if(a>b)
  ^~
/in/foo.c:22:1: error: expected ';' before '}' token
 }
 ^

信息

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