/in/foo.cc:36:9: error: 'cout' does not name a type
cout << "~LinkList()" << endl;
^~~~
/in/foo.cc:37:9: error: expected unqualified-id before 'while'
while (head)
^~~~~
/in/foo.cc:43:5: error: expected ';' after class definition
}
^
/in/foo.cc: In function 'void append(int)':
/in/foo.cc:49:14: error: 'head' was not declared in this scope
if (!head)
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:64:18: error: non-member function 'void print()' cannot have cv-qualifier
void print() const
^~~~~
/in/foo.cc: In function 'void print()':
/in/foo.cc:66:25: error: 'head' was not declared in this scope
Node* current = head;
^~~~
/in/foo.cc: At global scope:
/in/foo.cc:74:1: error: expected declaration before '}' token
};
^