/in/foo.cc: In constructor 'PolyList::PolyList(PolyListNode&)':
/in/foo.cc:21:9: error: 'struct PolyListNode' has no member named 'size'
size=p.size;
^~~~
/in/foo.cc:24:12: error: no match for 'operator[]' (operand types are 'PolyListNode' and 'int')
poly[i]=p[i];
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:14: error: no matching function for call to 'PolyList::PolyList(PolyListNode*&)'
PolyList P(p);
^
/in/foo.cc:19:1: note: candidate: PolyList::PolyList(PolyListNode&)
PolyList::PolyList(PolyListNode &p)
^~~~~~~~
/in/foo.cc:19:1: note: no known conversion for argument 1 from 'PolyListNode*' to 'PolyListNode&'
/in/foo.cc:9:7: note: candidate: constexpr PolyList::PolyList(const PolyList&)
class PolyList
^~~~~~~~
/in/foo.cc:9:7: note: no known conversion for argument 1 from 'PolyListNode*' to 'const PolyList&'