记录详情

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:11: error: 'n' undeclared (first use in this function)
  int i, a[n];
           ^
/in/foo.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:19:9: error: 'j' undeclared (first use in this function)
     for(j=10; j>i; j--)
         ^
/in/foo.c:4:9: warning: unused variable 'a' [-Wunused-variable]
  int i, a[n];
         ^

信息

递交者
类型
自测
题目
A7-5 数组的有序插入函数
语言
C
递交时间
2019-03-02 10:55:38
评测时间
2019-03-02 10:55:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes