记录详情

Accepted

foo.cc: In member function ‘void PolyList::Merge()’:
foo.cc:23:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   23 |                 for (int i = 0; i < t.size(); i++)
      |                                 ~~^~~~~~~~~~
foo.cc:26:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   26 |                         for (int j = 0; j < merged.size(); j++)
      |                                         ~~^~~~~~~~~~~~~~~
foo.cc: In member function ‘PolyList PolyList::operator+(PolyList&)’:
foo.cc:46:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   46 |                 while (i <t.size() && j <obj.t.size())
      |                        ~~^~~~~~~~~
foo.cc:46:41: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   46 |                 while (i <t.size() && j <obj.t.size())
      |                                       ~~^~~~~~~~~~~~~
foo.cc:66:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   66 |                         while(i<t.size())
      |                               ~^~~~~~~~~
foo.cc:71:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   71 |                         while(j<obj.t.size())
      |                               ~^~~~~~~~~~~~~
foo.cc: In member function ‘void PolyList::Output()’:
foo.cc:85:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   85 |                 for (int i=0;i<t.size();i++)
      |                              ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 768.0 KiB
#2 Accepted 2ms 324.0 KiB
#3 Accepted 2ms 508.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 324.0 KiB

信息

递交者
类型
递交
题目
P1022 OO5-2 一元多项式类PolyList的运算
比赛
2024春 面向对象的程序设计方法(第2场作业赛)
语言
C++
递交时间
2024-04-06 13:23:35
评测时间
2024-04-06 13:23:35
评测机
分数
100
总耗时
13ms
峰值内存
768.0 KiB