foo.cc:7:25: error: extended character “ is not valid in an identifier
7 | ~Node(){cout << “~Node()" << data << endl;};
| ^
foo.cc:7:33: warning: missing terminating " character
7 | ~Node(){cout << “~Node()" << data << endl;};
| ^
foo.cc:7:33: error: missing terminating " character
7 | ~Node(){cout << “~Node()" << data << endl;};
| ^~~~~~~~~~~~~~~~~~~~
foo.cc:42:31: error: extended character “ is not valid in an identifier
42 | ~LinkList(){cout << “~LinkList()" << endl;};
| ^
foo.cc:42:43: warning: missing terminating " character
42 | ~LinkList(){cout << “~LinkList()" << endl;};
| ^
foo.cc:42:43: error: missing terminating " character
42 | ~LinkList(){cout << “~LinkList()" << endl;};
| ^~~~~~~~~~~~
foo.cc:56:2: error: expected ‘}’ at end of input
56 | }
| ^
foo.cc:9:16: note: to match this ‘{’
9 | class LinkList {
| ^
foo.cc:56:2: error: expected unqualified-id at end of input
56 | }
| ^
foo.cc:56:2: error: expected ‘}’ at end of input
foo.cc:3:12: note: to match this ‘{’
3 | class Node {
| ^
foo.cc: In destructor ‘Node::~Node()’:
foo.cc:7:25: error: ‘“’ was not declared in this scope
7 | ~Node(){cout << “~Node()" << data << endl;};
| ^
foo.cc: In constructor ‘Node::LinkList::LinkList(int, int*)’:
foo.cc:26:45: error: expected ‘)’ before ‘)’
26 | for (int i = 1; i < n; i++) {
| ^~
foo.cc:26:23: note: to match this ‘(’
26 | for (int i = 1; i < n; i++) {
| ^
foo.cc:26:45: error: ‘)’ was not declared in this scope
26 | for (int i = 1; i < n; i++) {
| ^~
foo.cc:25:25: warning: unused variable ‘n1’ [-Wunused-variable]
25 | Node* n1=head;
| ^~
foo.cc: In destructor ‘Node::LinkList::~LinkList()’:
foo.cc:42:31: error: ‘“’ was not declared in this scope
42 | ~LinkList(){cout << “~LinkList()" << endl;};
| ^
foo.cc: In member function ‘int Node::LinkList::main()’:
foo.cc:49:35: error: expected ‘)’ before ‘)’
49 | for (int i = 0; i < n; i++){
| ^~
foo.cc:49:13: note: to match this ‘(’
49 | for (int i = 0; i < n; i++){
| ^
foo.cc:49:35: error: ‘)’ was not declared in this scope
49 | for (int i = 0; i < n; i++){
| ^~
foo.cc: At global scope:
foo.cc:56:2: error: expected unqualified-id at end of input
56 | }
| ^