foo.cc: In function ‘int main()’:
foo.cc:104:15: error: ‘int LinkList::Count’ is private within this context
104 | for(i=0; i<L2.Count; i++) L2[i]=L2[i]+1;
| ^~~~~
foo.cc:12:9: note: declared private here
12 | int Count;
| ^~~~~
foo.cc:104:15: note: field ‘int LinkList::Count’ can be accessed via ‘int LinkList::GetCount() const’
104 | for(i=0; i<L2.Count; i++) L2[i]=L2[i]+1;
| ^~~~~
| GetCount()
foo.cc:106:15: error: ‘int LinkList::Count’ is private within this context
106 | for(i=0; i<L1.Count; i++) L1Sum+=L1[i];
| ^~~~~
foo.cc:12:9: note: declared private here
12 | int Count;
| ^~~~~
foo.cc:106:15: note: field ‘int LinkList::Count’ can be accessed via ‘int LinkList::GetCount() const’
106 | for(i=0; i<L1.Count; i++) L1Sum+=L1[i];
| ^~~~~
| GetCount()
foo.cc:108:15: error: ‘int LinkList::Count’ is private within this context
108 | for(i=0; i<L2.Count; i++) L2Sum+=L2[i];
| ^~~~~
foo.cc:12:9: note: declared private here
12 | int Count;
| ^~~~~
foo.cc:108:15: note: field ‘int LinkList::Count’ can be accessed via ‘int LinkList::GetCount() const’
108 | for(i=0; i<L2.Count; i++) L2Sum+=L2[i];
| ^~~~~
| GetCount()