记录详情

Accepted

foo.cc: In member function ‘PolyList PolyList::operator+(const PolyList&)’:
foo.cc:28:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   28 |                 for (int i = 0; i < poly.size(); i++)
      |                                 ~~^~~~~~~~~~~~~
foo.cc:30:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   30 |                 for (int i = 0; i < p.poly.size(); i++)
      |                                 ~~^~~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:47:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   47 |         for (int i = 0; i < Pc.poly.size(); i++)
      |                         ~~^~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 764.0 KiB
#4 Accepted 2ms 324.0 KiB
#5 Accepted 2ms 536.0 KiB

信息

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