记录详情

Accepted

foo.cc: In constructor 'BigInt::BigInt(std::string)':
foo.cc:23:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |   for(int j=0; j<s.size(); j++)
      |                ~^~~~~~~~~
In file included from /usr/include/string.h:495,
                 from /usr/include/c++/9/cstring:42,
                 from foo.cc:3:
In function 'void* memset(void*, int, size_t)',
    inlined from 'BigInt BigInt::operator+(const BigInt&)' at foo.cc:63:9,
    inlined from 'void Test3()' at foo.cc:212:19:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:71:33: warning: 'void* __builtin___memset_chk(void*, int, long unsigned int, long unsigned int)' offset [405, 1000] from the object at 'ansss' is out of the bounds of referenced subobject 'BigInt::a' with type 'int [101]' at offset 0 [-Warray-bounds]
   71 |   return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest));
      |          ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-05-05 20:11:46
评测时间
2022-05-05 20:11:46
评测机
分数
100
总耗时
14ms
峰值内存
384.0 KiB