记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:69:24: error: 'int LinkList::Count' is private within this context
   69 |     for (i = 0; i < L2.Count; i++) L2[i] = L2[i] + 1;
      |                        ^~~~~
/in/foo.cc:15:9: note: declared private here
   15 |     int Count;
      |         ^~~~~
/in/foo.cc:71:24: error: 'int LinkList::Count' is private within this context
   71 |     for (i = 0; i < L1.Count; i++) L1Sum += L1[i];
      |                        ^~~~~
/in/foo.cc:15:9: note: declared private here
   15 |     int Count;
      |         ^~~~~
/in/foo.cc:73:24: error: 'int LinkList::Count' is private within this context
   73 |     for (i = 0; i < L2.Count; i++) L2Sum += L2[i];
      |                        ^~~~~
/in/foo.cc:15:9: note: declared private here
   15 |     int Count;
      |         ^~~~~

信息

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