记录详情

Accepted

foo.cc: In member function ‘PloyListNode PloyListNode::operator+(PloyListNode)’:
foo.cc:17:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   17 |                 for (int i=0;i<node.size();i++)
      |                              ~^~~~~~~~~~~~
foo.cc:19:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   19 |                 for (int i=0;i<p.node.size();i++){
      |                              ~^~~~~~~~~~~~~~
foo.cc:20:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   20 |                         for (int j=0;j<newv.size();j++){
      |                                      ~^~~~~~~~~~~~
foo.cc: In member function ‘PloyListNode PloyListNode::operator*(PloyListNode)’:
foo.cc:36:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   36 |                 for (int i=0;i<node.size();i++){
      |                              ~^~~~~~~~~~~~
foo.cc:37:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   37 |                         for (int j=0;j<p.node.size();j++){
      |                                      ~^~~~~~~~~~~~~~
foo.cc: In member function ‘int PloyListNode::out(int)’:
foo.cc:61:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   61 |                 for (int i=0;i<node.size();i++)
      |                              ~^~~~~~~~~~~~
foo.cc: In function ‘std::ostream& operator<<(std::ostream&, PloyListNode)’:
foo.cc:70:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   70 |         for (int i=0;i<p.node.size();i++)
      |                      ~^~~~~~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:80:29: warning: unused variable ‘x’ [-Wunused-variable]
   80 |         int n,m;int a,b;int x;
      |                             ^
# 状态 耗时 内存占用
#1 Accepted 3ms 324.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 2ms 540.0 KiB
#4 Accepted 2ms 320.0 KiB
#5 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1037 OO8-2 一元多项式链表类的运算
比赛
2024春 面向对象的程序设计方法(第3场作业赛)
语言
C++
递交时间
2024-05-03 12:07:57
评测时间
2024-05-03 12:07:57
评测机
分数
100
总耗时
13ms
峰值内存
540.0 KiB