foo.cc: In copy constructor ‘IntLinkList::IntLinkList(IntLinkList&)’:
foo.cc:70:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
70 | }while(i = i->next);
| ~~^~~~~~~~~
foo.cc: In member function ‘void IntLinkList::Append(int)’:
foo.cc:100:17: error: ‘i’ was not declared in this scope
100 | i->next = ntail;
| ^
foo.cc: In member function ‘void IntLinkList::InsertAt(int, int)’:
foo.cc:114:39: error: ‘i’ was not declared in this scope
114 | nnode->next = i;
| ^
foo.cc:118:21: error: ‘i’ was not declared in this scope
118 | if (i->next == NULL)//如果要插入尾结点
| ^
foo.cc:123:31: error: ‘i’ was not declared in this scope
123 | nnode->next = i->next;//链接插入的结点和k号结点
| ^
foo.cc: In function ‘int main(int, char**)’:
foo.cc:143:14: error: ‘i’ was not declared in this scope
143 | for (i = 0; i < n; i++)
| ^