/ Vijos /

记录详情

Accepted

foo.cc: In member function ‘BigInt BigInt::operator+(const BigInt&) const’:
foo.cc:52:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   52 | if (count == 0 && i >= s.size() && i >= b.s.size()) break;
      |                   ~~^~~~~~~~~~~
foo.cc:52:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   52 | if (count == 0 && i >= s.size() && i >= b.s.size()) break;
      |                                    ~~^~~~~~~~~~~~~
foo.cc:54:7: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   54 | if (i < s.size()) x += s[i];
      |     ~~^~~~~~~~~~
foo.cc:55:7: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   55 | if (i < b.s.size()) x += b.s[i];
      |     ~~^~~~~~~~~~~~
foo.cc: In member function ‘BigInt BigInt::operator*(int) const’:
foo.cc:67:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   67 | if (carry == 0 && i >= s.size()) break;
      |                   ~~^~~~~~~~~~~
foo.cc:69:7: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   69 | if (i < s.size()) x += (long long)times * s[i];
      |     ~~^~~~~~~~~~
foo.cc: In function ‘std::ostream& operator<<(std::ostream&, const BigInt&)’:
foo.cc:83:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   83 | for (int j = 0; j < strlen(buf); j++) out << buf[j];
      |                 ~~^~~~~~~~~~~~~
foo.cc: In function ‘bool check(std::string&, std::string&, int, int)’:
foo.cc:166:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  166 | for (int i = 0, j = pos + blank;i < a.size() && j < b.size(); i++,j++)
      |                                 ~~^~~~~~~~~~
foo.cc:166:51: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  166 | for (int i = 0, j = pos + blank;i < a.size() && j < b.size(); i++,j++)
      |                                                 ~~^~~~~~~~~~
foo.cc: In function ‘bool check_through(std::string, std::string&, int)’:
foo.cc:175:11: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  175 | for (;pos < b.size(); pos += a.size())
      |       ~~~~^~~~~~~~~~
foo.cc: In function ‘bool all(std::string&, char)’:
foo.cc:185:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  185 | for (int i = 0; i < a.size(); i++)
      |                 ~~^~~~~~~~~~
foo.cc: In function ‘int main()’:
foo.cc:198:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  198 | else for (int len = 1; len <= s.size(); len++)
      |                        ~~~~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 536.0 KiB
#2 Accepted 3ms 552.0 KiB
#3 Accepted 2ms 536.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 1ms 548.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Accepted 2ms 496.0 KiB
#9 Accepted 3ms 448.0 KiB
#10 Accepted 3ms 548.0 KiB
#11 Accepted 2ms 536.0 KiB
#12 Accepted 2ms 764.0 KiB
#13 Accepted 2ms 556.0 KiB
#14 Accepted 4ms 536.0 KiB
#15 Accepted 2ms 536.0 KiB
#16 Accepted 3ms 536.0 KiB
#17 Accepted 2ms 540.0 KiB
#18 Accepted 2ms 380.0 KiB
#19 Accepted 2ms 552.0 KiB
#20 Accepted 2ms 536.0 KiB
#21 Accepted 2ms 536.0 KiB
#22 Accepted 2ms 328.0 KiB
#23 Accepted 2ms 536.0 KiB
#24 Accepted 2ms 764.0 KiB
#25 Accepted 2ms 536.0 KiB
#26 Accepted 4ms 548.0 KiB
#27 Accepted 2ms 544.0 KiB
#28 Accepted 3ms 536.0 KiB
#29 Accepted 3ms 496.0 KiB
#30 Accepted 8ms 516.0 KiB
#31 Accepted 2ms 536.0 KiB
#32 Accepted 3ms 536.0 KiB
#33 Accepted 2ms 320.0 KiB
#34 Accepted 4ms 536.0 KiB
#35 Accepted 3ms 536.0 KiB
#36 Accepted 3ms 548.0 KiB
#37 Accepted 2ms 540.0 KiB
#38 Accepted 2ms 536.0 KiB
#39 Accepted 2ms 536.0 KiB
#40 Accepted 1ms 536.0 KiB

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2024-08-15 16:22:04
评测时间
2024-08-15 16:22:04
评测机
分数
400
总耗时
117ms
峰值内存
764.0 KiB