记录详情

Compile Error

/in/foo.cc:11:2: error: extra qualification 'LinkList::' on member 'LinkList' [-fpermissive]
  LinkList::LinkList(LinkList &L)
  ^~~~~~~~
/in/foo.cc:11:32: error: expected ';' at end of member declaration
  LinkList::LinkList(LinkList &L)
                                ^
/in/foo.cc: In constructor 'LinkList::LinkList()':
/in/foo.cc:18:6: error: 'i' was not declared in this scope
  for(i=0;i<Count;i++)
      ^
/in/foo.cc: At global scope:
/in/foo.cc:45:21: error: definition of implicitly-declared 'LinkList::~LinkList()'
 LinkList::~LinkList()
                     ^
/in/foo.cc:50:6: error: 'IntLinkList' has not been declared
 int &IntLinkList::operator[](int k)
      ^~~~~~~~~~~
/in/foo.cc:50:35: error: 'int& operator[](int)' must be a nonstatic member function
 int &IntLinkList::operator[](int k)
                                   ^

信息

递交者
类型
递交
题目
P1027 OO7-2 把链表对象包装成数组
语言
C++
递交时间
2020-03-29 13:07:32
评测时间
2020-03-29 13:07:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes