记录详情

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 'void Vector::com(Vector&, Vector&)':
/in/foo.cc:44:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |         while (i < a.size() && j < b.a.size())
      |                ~~^~~~~~~~~~
/in/foo.cc:44:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   44 |         while (i < a.size() && j < b.a.size())
      |                                ~~^~~~~~~~~~~~
/in/foo.cc:57:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   57 |         while (i < a.size()) {
      |                ~~^~~~~~~~~~
/in/foo.cc:61:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   61 |         while (j < b.a.size())
      |                ~~^~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 476.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 480.0 KiB
#4 Accepted 1ms 468.0 KiB
#5 Accepted 2ms 320.0 KiB

信息

递交者
类型
递交
题目
P1050 OO11-2 vector<int>中的有序插入
比赛
2024级《面向对象的方法与实践》第五次作业
语言
C++
递交时间
3 周前
评测时间
3 周前
评测机
分数
100
总耗时
10ms
峰值内存
536.0 KiB