记录详情

Compile Error

/in/foo.cc:20:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:8: error: storage size of 'a' isn't known
  int a[],n,x,l,b[],m;
        ^
/in/foo.cc:21:18: error: storage size of 'b' isn't known
  int a[],n,x,l,b[],m;
                  ^
/in/foo.cc:27:7: error: expected primary-expression before ']' token
     b[].apend=i;
       ^
/in/foo.cc:31:14: error: expected primary-expression before ']' token
  if(search(a[],n,x,l)==-1)
              ^
/in/foo.cc:33:14: error: expected primary-expression before ']' token
  if(search(a[],n,x,l)==1)
              ^

信息

递交者
类型
自测
题目
A7-4 数组的查找函数
语言
C++
递交时间
2019-03-02 10:50:31
评测时间
2019-03-02 10:50:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes