记录详情

Accepted

/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const Vector&)':
/in/foo.cc:22:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |         for (int i = 0; i < x.a.size(); i++)
      |                         ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'int Vector::search(int)':
/in/foo.cc:28:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |         for (int i = 0; i < a.size(); i++)
      |                         ~~^~~~~~~~~~
/in/foo.cc: In member function 'void Vector::c(Vector&, Vector&)':
/in/foo.cc:45:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   45 |         for (int i = 0; i < b.a.size(); i++)
      |                         ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 532.0 KiB
#2 Accepted 2ms 480.0 KiB
#3 Accepted 2ms 472.0 KiB
#4 Accepted 1ms 528.0 KiB
#5 Accepted 1ms 492.0 KiB

信息

递交者
类型
递交
题目
P1049 OO11-1 vector<int>中的查找删除
比赛
2024级《面向对象的方法与实践》第五次作业
语言
C++
递交时间
2025-05-11 12:34:36
评测时间
2025-05-11 12:34:36
评测机
分数
100
总耗时
9ms
峰值内存
532.0 KiB