记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:17: error: expected ']' before '}' token
    if(a[j]>a[j+1})
                 ^
/in/foo.c:12:17: error: expected ')' before '}' token
/in/foo.c:12:17: error: expected expression before '}' token
/in/foo.c:6:10: warning: unused variable 'temp' [-Wunused-variable]
  int i,j,temp;
          ^~~~
/in/foo.c: At top level:
/in/foo.c:12:18: error: expected identifier or '(' before ')' token
    if(a[j]>a[j+1})
                  ^
/in/foo.c:19:9: error: expected declaration specifiers or '...' before string constant
  printf("%d %d",a[1],a[2]);
         ^~~~~~~
/in/foo.c:19:17: error: unknown type name 'a'
  printf("%d %d",a[1],a[2]);
                 ^
/in/foo.c:19:22: error: unknown type name 'a'
  printf("%d %d",a[1],a[2]);
                      ^
/in/foo.c:20:2: error: expected identifier or '(' before 'return'
  return 0;
  ^~~~~~
/in/foo.c:23:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A1-2 分支结构练习:三数的特征值
语言
C
递交时间
2020-11-03 13:30:52
评测时间
2020-11-03 13:30:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes