记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:2: error: 'inta' undeclared (first use in this function)
  inta,b,c;
  ^~~~
/in/foo.c:5:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:7: error: 'b' undeclared (first use in this function)
  inta,b,c;
       ^
/in/foo.c:5:6: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  inta,b,c;
      ^
/in/foo.c:5:9: error: 'c' undeclared (first use in this function)
  inta,b,c;
         ^
/in/foo.c:5:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  inta,b,c;
        ^
/in/foo.c:7:12: error: stray '\357' in program
  scanf("%d",&a);
            ^
/in/foo.c:7:13: error: stray '\274' in program
  scanf("%d",&a);
             ^
/in/foo.c:7:14: error: stray '\214' in program
  scanf("%d",&a);
              ^
/in/foo.c:7:16: error: 'a' undeclared (first use in this function)
  scanf("%d",&a);
                ^
/in/foo.c:17:4: error: stray '\357' in program
  if(a>c){
    ^
/in/foo.c:17:5: error: stray '\274' in program
  if(a>c){
     ^
/in/foo.c:17:6: error: stray '\210' in program
  if(a>c){
      ^
/in/foo.c:17:7: error: expected '(' before 'a'
  if(a>c){
       ^
/in/foo.c:17:10: error: stray '\357' in program
  if(a>c){
          ^
/in/foo.c:17:11: error: stray '\274' in program
  if(a>c){
           ^
/in/foo.c:17:12: error: stray '\211' in program
  if(a>c){
            ^
/in/foo.c:22:4: error: stray '\357' in program
  if(b>c){
    ^
/in/foo.c:22:5: error: stray '\274' in program
  if(b>c){
     ^
/in/foo.c:22:6: error: stray '\210' in program
  if(b>c){
      ^
/in/foo.c:22:10: error: stray '\357' in program
  if(b>c){
          ^
/in/foo.c:22:11: error: stray '\274' in program
  if(b>c){
           ^
/in/foo.c:22:12: error: stray '\211' in program
  if(b>c){
            ^

信息

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