记录详情

Compile Error

/in/foo.cc:14:9: error: ISO C++ forbids declaration of 'Output' with no type [-fpermissive]
  Output()
         ^
/in/foo.cc:20:11: error: ISO C++ forbids declaration of 'SetInter' with no type [-fpermissive]
  SetInter();
           ^
/in/foo.cc: In member function 'int Array::Output()':
/in/foo.cc:16:16: error: 'x' was not declared in this scope
  for(int i=0;i<x;i++)
                ^
/in/foo.cc:19:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
/in/foo.cc: At global scope:
/in/foo.cc:23:6: error: prototype for 'void Array::SetInter()' does not match any in class 'Array'
 void Array::SetInter()
      ^~~~~
/in/foo.cc:20:2: error: candidate is: int Array::SetInter()
  SetInter();
  ^~~~~~~~

信息

递交者
类型
递交
题目
A10-4 集合的交集
比赛
数据结构课堂练习9-16
语言
C++
递交时间
2019-09-16 11:03:01
评测时间
2019-09-16 11:03:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes