记录详情

Wrong Answer

foo.cc: In member function ‘PolyList PolyList::operator+(const PolyList&) const’:
foo.cc:32:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   32 |         while (i < terms.size() && j < other.terms.size()) {
      |                ~~^~~~~~~~~~~~~~
foo.cc:32:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   32 |         while (i < terms.size() && j < other.terms.size()) {
      |                                    ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:49:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   49 |         while (i < terms.size()) {
      |                ~~^~~~~~~~~~~~~~
foo.cc:53:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<PolyListNode>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   53 |         while (j < other.terms.size()) {
      |                ~~^~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 3ms 764.0 KiB

信息

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