记录详情

Compile Error

foo.cc:15:2: error: extra qualification 'LinkList::' on member 'LinkList' [-fpermissive]
   15 |  LinkList::LinkList(int *sp, int *ep)
      |  ^~~~~~~~
foo.cc:70:8: error: declaration of 'operater' as array of functions
   70 |  int & operater[](int index)
      |        ^~~~~~~~
foo.cc:76:2: error: expected ';' at end of member declaration
   76 |  }
      |  ^
      |   ;
foo.cc: In member function 'void LinkList::pop_front()':
foo.cc:56:7: warning: unused variable 'x' [-Wunused-variable]
   56 |   int x = head->data;
      |       ^
foo.cc: In function 'int main()':
foo.cc:96:6: error: 'i' was not declared in this scope
   96 |  for(i=0; i<L2.Count; i++) L2[i]=L2[i]+1;
      |      ^
foo.cc:98:6: error: 'i' was not declared in this scope
   98 |  for(i=0; i<L1.Count; i++) L1Sum+=L1[i];
      |      ^
foo.cc:100:6: error: 'i' was not declared in this scope
  100 |  for(i=0; i<L2.Count; i++) L2Sum+=L2[i];
      |      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1027 OO7-2 把链表对象包装成数组
语言
C++
递交时间
2022-04-28 19:32:35
评测时间
2022-04-28 19:32:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes