/ OPS /

记录详情

Accepted

/in/foo.cc: In function 'BigInt add(BigInt, BigInt)':
/in/foo.cc:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |     for (int i = 0; i < a.size() || i < b.size(); i++) {
      |                     ~~^~~~~~~~~~
/in/foo.cc:11:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |     for (int i = 0; i < a.size() || i < b.size(); i++) {
      |                                     ~~^~~~~~~~~~
/in/foo.cc:12:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |         int x = i < a.size() ? a[i] : 0;
      |                 ~~^~~~~~~~~~
/in/foo.cc:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         int y = i < b.size() ? b[i] : 0;
      |                 ~~^~~~~~~~~~
/in/foo.cc: In function 'BigInt multiply(BigInt, BigInt)':
/in/foo.cc:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |     for (int i = 0; i < a.size(); i++) {
      |                     ~~^~~~~~~~~~
/in/foo.cc:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         for (int j = 0; j < b.size(); j++) {
      |                         ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 36ms 880.0 KiB

信息

递交者
类型
递交
题目
P1105 字串数
语言
C++
递交时间
2025-08-31 11:48:54
评测时间
2025-08-31 11:48:54
评测机
分数
10
总耗时
36ms
峰值内存
880.0 KiB