记录详情

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 2ms 324.0 KiB

信息

递交者
类型
自测
题目
P1022 OO5-2 一元多项式类PolyList的运算
语言
C++
递交时间
2024-04-06 13:23:29
评测时间
2024-04-06 13:23:29
评测机
分数
10
总耗时
2ms
峰值内存
324.0 KiB