/ Vijos /

记录详情

Time Exceeded

foo.cc: In constructor 'Bi::Bi(ll)':
foo.cc:27:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   27 |                 if (f = a < 0) a = -a;
      |                     ~~^~~~~~~
foo.cc: In member function 'void Bi::input()':
foo.cc:49:42: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |                         for (ll i = 1; i < v.size(); ++i)
      |                                        ~~^~~~~~~~~~
foo.cc: In member function 'Bi Bi::operator+(const Bi&) const':
foo.cc:97:31: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   97 |                         if (i < v.size()) an.v[i] += v[i];
      |                             ~~^~~~~~~~~~
foo.cc:98:31: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   98 |                         if (i < b.v.size()) an.v[i] += b.v[i];
      |                             ~~^~~~~~~~~~~~
foo.cc: In member function 'Bi Bi::operator-(const Bi&) const':
foo.cc:112:31: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  112 |                         if (i < b.v.size()) an.v[i] -= b.v[i];
      |                             ~~^~~~~~~~~~~~
foo.cc: In member function 'Bi Bi::operator*(const Bi&) const':
foo.cc:123:34: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  123 |                 for (ll i = 0; i < b.v.size(); ++i) {
      |                                ~~^~~~~~~~~~~~
foo.cc:127:42: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  127 |                         for (ll j = 0; j < v.size(); ++j) {
      |                                        ~~^~~~~~~~~~
foo.cc: In member function 'Bi Bi::operator*(const int&) const':
foo.cc:143:34: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  143 |                 for (ll j = 0; j < v.size(); ++j) {
      |                                ~~^~~~~~~~~~
foo.cc: In member function 'Bi Bi::operator/(const Bi&) const':
foo.cc:164:41: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  164 |                                 mid = l + r >> 1;
      |                                       ~~^~~
foo.cc: In member function 'Bi Bi::operator%(const Bi&) const':
foo.cc:186:41: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  186 |                                 mid = l + r >> 1;
      |                                       ~~^~~
foo.cc: In member function 'bool Bi::operator==(const Bi&) const':
foo.cc:233:34: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  233 |                 for (ll i = 0; i < v.size(); ++i)
      |                                ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 412.0 KiB
#2 Accepted 8ms 412.0 KiB
#3 Accepted 22ms 412.0 KiB
#4 Time Exceeded ≥1100ms ≥456.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2023-10-22 10:25:54
评测时间
2023-10-22 10:25:54
评测机
分数
75
总耗时
≥1139ms
峰值内存
≥456.0 KiB