Wrong Answer

/in/foo.cc: In member function 'void PolyLinkNode::Add(PolyLinkNode)':
/in/foo.cc:40:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j = 0; j < v.size(); j++)
                         ~~^~~~~~~~~~
/in/foo.cc:48:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (j >= v.size())
                 ~~^~~~~~~~~~~
/in/foo.cc:51:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size() - 1; i++)
                         ~~^~~~~~~~~~~~~~
/in/foo.cc:53:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < v.size() - 1 - i; j++)
                             ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:59:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); i++)
                         ~~^~~~~~~~~~
/in/foo.cc: In member function 'void PolyLinkNode::Mul(PolyLinkNode)':
/in/foo.cc:70:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); i++)
                         ~~^~~~~~~~~~
/in/foo.cc:72:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < P.v.size(); j++)
                             ~~^~~~~~~~~~~~
/in/foo.cc:76:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for (int k = 0; k < tmp.size(); k++)
                                 ~~^~~~~~~~~~~~
/in/foo.cc:83:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (k >= tmp.size())
                     ~~^~~~~~~~~~~~~
/in/foo.cc:87:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < tmp.size() - 1; i++)
                         ~~^~~~~~~~~~~~~~~~
/in/foo.cc:89:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < tmp.size() - 1 - i; j++)
                             ~~^~~~~~~~~~~~~~~~~~~~
/in/foo.cc:95:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < tmp.size(); i++)
                         ~~^~~~~~~~~~~~
/in/foo.cc:83:23: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 if (k >= tmp.size())
                     ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 356.0 KiB

信息

递交者
类型
自测
题目
P1137 OO8-2 一元多项式链表类的运算
语言
C++
递交时间
2024-04-25 16:10:02
评测时间
2024-04-25 16:10:02
评测机
分数
0
总耗时
1ms
峰值内存
356.0 KiB