Accepted
/in/foo.cc:1:9: warning: #pragma once in main file #pragma once ^~~~ /in/foo.cc: In instantiation of 'List<T>::~List() [with T = int]': /in/foo.cc:266:12: required from here /in/foo.cc:250:18: warning: NULL used in arithmetic [-Wpointer-arith] if (head->data != NULL) ^ /in/foo.cc: In instantiation of 'void List<T>::add(T) [with T = int]': /in/foo.cc:272:12: required from here /in/foo.cc:82:13: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] tail->data = NULL; ^
信息
- 递交者
- 类型
- 递交
- 题目
- P1026 OO7-1 链表类的构造、析构
- 比赛
- 数据结构课堂练习9-23
- 语言
- C++
- 递交时间
- 2019-09-23 11:03:56
- 评测时间
- 2019-09-23 11:03:56
- 评测机
- 分数
- 100
- 总耗时
- 6ms
- 峰值内存
- 224.0 KiB