记录详情

Compile Error

foo.cc:15:10: error: ISO C++ forbids declaration of 'Initial' with no type [-fpermissive]
   15 |  Initial(){ for(int i = 0;i<10000;i++) v.push_back(0); }
      |          ^
foo.cc: In member function 'int BigInt::Initial()':
foo.cc:15:56: warning: no return statement in function returning non-void [-Wreturn-type]
   15 |  Initial(){ for(int i = 0;i<10000;i++) v.push_back(0); }
      |                                                        ^
foo.cc: In member function 'BigInt& BigInt::operator=(const BigInt&)':
foo.cc:53:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   53 |   for(int i = 0;i<b.v.size();i++)
      |                 ~^~~~~~~~~~~
foo.cc: In member function 'bool BigInt::operator<(BigInt&)':
foo.cc:72:2: warning: control reaches end of non-void function [-Wreturn-type]
   72 |  }
      |  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1025 OO6-3 高精度整数集合类的插入排序
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-01 20:28:50
评测时间
2022-05-01 20:28:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes