/ OIer TK /

记录详情

Accepted

foo.cc: In member function 'BigInteger BigInteger::operator+(const BigInteger&) const':
foo.cc:39:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 | if (g == 0 && i >= s.size() && i >= b.s.size()) break;
      |               ~~^~~~~~~~~~~
foo.cc:39:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   39 | if (g == 0 && i >= s.size() && i >= b.s.size()) break;
      |                                ~~^~~~~~~~~~~~~
foo.cc:41:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   41 | if (i < s.size()) x += s[i];
      |     ~~^~~~~~~~~~
foo.cc:42:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   42 | if (i < b.s.size()) x += b.s[i];
      |     ~~^~~~~~~~~~~~
foo.cc: In member function 'BigInteger BigInteger::operator-(const BigInteger&) const':
foo.cc:52:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 | if (g == 0 && i >= s.size() && i >= b.s.size()) break;
      |               ~~^~~~~~~~~~~
foo.cc:52:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   52 | if (g == 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 < b.s.size()) x -= b.s[i];
      |     ~~^~~~~~~~~~~~
foo.cc: In member function 'BigInteger BigInteger::operator*(const BigInteger&) const':
foo.cc:64:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   64 | for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
      |         ~^~~~~~~~~
foo.cc:64:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   64 | for(i=0;i<s.size();i++) for(j=0;j<b.s.size();j++) v[i+j]+=LL(s[i])*b.s[j];
      |                                 ~^~~~~~~~~~~
foo.cc:66:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   66 | if (g ==0 && i >= v.size()) break;
      |              ~~^~~~~~~~~~~
foo.cc: In function 'std::ostream& operator<<(std::ostream&, const BigInteger&)':
foo.cc:127:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
  127 | for (int j = 0; j < strlen(buf); j++) out << buf[j];
      |                 ~~^~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 408.0 KiB
#2 Accepted 4ms 408.0 KiB
#3 Accepted 3ms 376.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 328.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 5ms 412.0 KiB
#8 Accepted 5ms 412.0 KiB
#9 Accepted 9ms 412.0 KiB
#10 Accepted 10ms 412.0 KiB

信息

递交者
类型
递交
题目
P1212 神秘配方
语言
C++
递交时间
2023-06-06 17:12:04
评测时间
2023-06-06 17:12:04
评测机
分数
100
总耗时
55ms
峰值内存
412.0 KiB