/in/foo.cc:97:39: error: expected '}' at end of input
97 | for (PolyLinkNode* curr = head
| ^
/in/foo.cc:11:20: note: to match this '{'
11 | class PolyLinkList {
| ^
/in/foo.cc: In member function 'void PolyLinkList::print() const':
/in/foo.cc:97:39: error: expected ';' at end of input
97 | for (PolyLinkNode* curr = head
| ^
/in/foo.cc:97:39: error: expected primary-expression at end of input
/in/foo.cc:97:39: error: expected ';' at end of input
/in/foo.cc:97:39: error: expected primary-expression at end of input
/in/foo.cc:97:39: error: expected ')' at end of input
/in/foo.cc:97:13: note: to match this '('
97 | for (PolyLinkNode* curr = head
| ^
/in/foo.cc:97:39: error: expected statement at end of input
97 | for (PolyLinkNode* curr = head
| ^
/in/foo.cc:97:28: warning: unused variable 'curr' [-Wunused-variable]
97 | for (PolyLinkNode* curr = head
| ^~~~
/in/foo.cc:97:39: error: expected '}' at end of input
97 | for (PolyLinkNode* curr = head
| ^
/in/foo.cc:95:24: note: to match this '{'
95 | void print() const {
| ^
/in/foo.cc: At global scope:
/in/foo.cc:97:39: error: expected unqualified-id at end of input
97 | for (PolyLinkNode* curr = head
| ^