记录详情

Accepted

/in/foo.cc: In constructor 'SeqList::SeqList(int)':
/in/foo.cc:15:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   15 |         for (size_t i = 0; i < n; ++i) {
      |                            ~~^~~
/in/foo.cc: In member function 'void SeqList::find(int)':
/in/foo.cc:27:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |                 for(int k=0;k<data.size();k++){
      |                             ~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Accepted 1ms 500.0 KiB
#3 Accepted 1ms 340.0 KiB
#4 Accepted 1ms 472.0 KiB
#5 Accepted 1ms 536.0 KiB

信息

递交者
类型
递交
题目
P1015 OO3-2 无序顺序表类的集合运算
比赛
2024级《面向对象的方法与实践》第一次作业
语言
C++
递交时间
2025-03-14 19:07:47
评测时间
2025-03-14 19:07:47
评测机
分数
100
总耗时
9ms
峰值内存
536.0 KiB