记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:10: error: 'new' undeclared (first use in this function)
  long *a=new long[n];     //动态定义数字a[n]
          ^~~
/in/foo.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:14: error: expected ',' or ';' before 'long'
  long *a=new long[n];     //动态定义数字a[n]
              ^~~~
/in/foo.c:13:2: error: 'delete' undeclared (first use in this function)
  delete[] a;              //动态定义出来的最后要释放空间
  ^~~~~~
/in/foo.c:13:9: error: expected expression before ']' token
  delete[] a;              //动态定义出来的最后要释放空间
         ^
/in/foo.c:5:11: warning: unused variable 'b' [-Wunused-variable]
  long n,i,b;
           ^

信息

递交者
类型
递交
题目
1-3 序列循环左移
语言
C
递交时间
2019-03-31 16:47:55
评测时间
2019-03-31 16:47:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes