Compile Error
foo.cc: In member function ‘void IntLinkList::InsertAt(int, int)’: foo.cc:107:39: error: ‘i’ was not declared in this scope 107 | nnode->next = i; | ^ foo.cc:111:21: error: ‘i’ was not declared in this scope 111 | if (i->next == NULL)//如果要插入尾结点 | ^ foo.cc:116:31: error: ‘i’ was not declared in this scope 116 | nnode->next = i->next;//链接插入的结点和k号结点 | ^ foo.cc: In function ‘int main(int, char**)’: foo.cc:136:14: error: ‘i’ was not declared in this scope 136 | for (i = 0; i < n; i++) | ^
信息
- 递交者
- 类型
- 自测
- 题目
- P1026 OO7-1 链表类的构造、析构
- 语言
- C++
- 递交时间
- 2024-04-07 00:40:36
- 评测时间
- 2024-04-07 00:40:36
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes