/ Vijos /

记录详情

Accepted

/in/foo.cc: In member function 'BigInt BigInt::operator+(const BigInt&) const':
/in/foo.cc:31:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |             if (count == 0 && i >= s.size() && i >= b.s.size()) break;
      |                               ~~^~~~~~~~~~~
/in/foo.cc:31:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |             if (count == 0 && i >= s.size() && i >= b.s.size()) break;
      |                                                ~~^~~~~~~~~~~~~
/in/foo.cc:33:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |             if (i < s.size()) x += s[i];
      |                 ~~^~~~~~~~~~
/in/foo.cc:34:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   34 |             if (i < b.s.size()) x += b.s[i];
      |                 ~~^~~~~~~~~~~~
/in/foo.cc: In member function 'BigInt BigInt::operator-(const BigInt&) const':
/in/foo.cc:47:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |             if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
      |                               ~~^~~~~~~~~~~
/in/foo.cc:47:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   47 |             if (carry == 0 && i >= s.size() && i >= b.s.size()) break;
      |                                                ~~^~~~~~~~~~~~~
/in/foo.cc:50:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   50 |             if (i < s.size()) x += s[i]; else break;
      |                 ~~^~~~~~~~~~
/in/foo.cc:51:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   51 |             if (i < b.s.size()) x -= b.s[i];
      |                 ~~^~~~~~~~~~~~
/in/foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInt&)':
/in/foo.cc:68:30: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   68 |             for(int j = 0; j < strlen(buf); j++) out << buf[j];
      |                            ~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 544.0 KiB
#2 Accepted 2ms 528.0 KiB
#3 Accepted 3ms 528.0 KiB
#4 Accepted 3ms 544.0 KiB
#5 Accepted 3ms 536.0 KiB
#6 Accepted 4ms 544.0 KiB
#7 Accepted 4ms 540.0 KiB
#8 Accepted 4ms 540.0 KiB
#9 Accepted 4ms 540.0 KiB
#10 Accepted 4ms 536.0 KiB

信息

递交者
类型
递交
题目
P1435 简单的邮递计划
语言
C++
递交时间
2025-05-30 19:04:43
评测时间
2025-05-30 19:04:43
评测机
分数
100
总耗时
37ms
峰值内存
544.0 KiB