记录详情

Compile Error

/in/foo.c:2:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:4:8: error: 'n' undeclared (first use in this function)
  int a[n];
        ^
/in/foo.c:4:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:5:17: warning: variable 'n' set but not used [-Wunused-but-set-variable]
  int number,i,j,n;
                 ^
/in/foo.c:4:6: warning: unused variable 'a' [-Wunused-variable]
  int a[n];
      ^

信息

递交者
类型
自测
题目
A7-5 数组的有序插入函数
语言
C
递交时间
2021-12-22 17:45:07
评测时间
2021-12-22 17:45:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes