/in/foo.cc: In function 'LinkList getIntersection(const LinkList&, const LinkList&)':
/in/foo.cc:112:12: error: use of deleted function 'LinkList::LinkList(const LinkList&)'
112 | return Lc;
| ^~
/in/foo.cc:99:5: note: declared here
99 | LinkList(const LinkList&) = delete;
| ^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:116:13: error: no declaration matches 'std::vector<int> LinkList::getAllElements() const'
116 | vector<int> LinkList::getAllElements() const {
| ^~~~~~~~
/in/foo.cc:116:13: note: no functions named 'std::vector<int> LinkList::getAllElements() const'
/in/foo.cc:15:7: note: 'class LinkList' defined here
15 | class LinkList {
| ^~~~~~~~
/in/foo.cc:127:10: error: redefinition of 'LinkList getIntersection(const LinkList&, const LinkList&)'
127 | LinkList getIntersection(const LinkList& La, const LinkList& Lb) {
| ^~~~~~~~~~~~~~~
/in/foo.cc:104:10: note: 'LinkList getIntersection(const LinkList&, const LinkList&)' previously defined here
104 | LinkList getIntersection(const LinkList& La, const LinkList& Lb) {
| ^~~~~~~~~~~~~~~
/in/foo.cc: In function 'LinkList getIntersection(const LinkList&, const LinkList&)':
/in/foo.cc:129:33: error: 'const class LinkList' has no member named 'getAllElements'
129 | vector<int> laElements = La.getAllElements();
| ^~~~~~~~~~~~~~
/in/foo.cc:135:12: error: use of deleted function 'LinkList::LinkList(const LinkList&)'
135 | return Lc;
| ^~
/in/foo.cc:99:5: note: declared here
99 | LinkList(const LinkList&) = delete;
| ^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:157:41: error: use of deleted function 'LinkList::LinkList(const LinkList&)'
157 | LinkList Lc = getIntersection(La, Lb);
| ^
/in/foo.cc:99:5: note: declared here
99 | LinkList(const LinkList&) = delete;
| ^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:167:7: error: redefinition of 'class LinkList'
167 | class LinkList {
| ^~~~~~~~
/in/foo.cc:15:7: note: previous definition of 'class LinkList'
15 | class LinkList {
| ^~~~~~~~