记录详情

Compile Error

foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
foo.cc:76:7: warning: unused variable 'carry' [-Wunused-variable]
   76 |   int carry = 0;
      |       ^~~~~
foo.cc: In member function 'BigInt BigInt::operator=(const char*)':
foo.cc:117:10: error: 'strlen' was not declared in this scope
  117 |   size = strlen(num);
      |          ^~~~~~
foo.cc:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 |  #include<vector>
  +++ |+#include <cstring>
    3 | #include<string>
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-10 21:39:58
评测时间
2022-05-10 21:39:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes