记录详情

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;
             ^
# 状态 耗时 内存占用
#1 Accepted 1ms 212.0 KiB
#2 Accepted 1ms 224.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Accepted 1ms 224.0 KiB
#5 Accepted 1ms 212.0 KiB

信息

递交者
类型
递交
题目
P1026 OO7-1 链表类的构造、析构
比赛
数据结构课堂练习9-23
语言
C++
递交时间
2019-09-23 11:03:56
评测时间
2019-09-23 11:03:56
评测机
分数
100
总耗时
6ms
峰值内存
224.0 KiB