/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'long long int __BigInt_b::convert_i(const std::vector<int>&)':
/in/foo.cc:35:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < a.size(); ++ i)
                     ~~^~~~~~~~~~
/in/foo.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'std::vector<int> __BigInt_b::addi(const std::vector<int>&, const std::vector<int>&)':
/in/foo.cc:58:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < b.size() || c[i] >= MOD; ++ i)
                     ~~^~~~~~~~~~
/in/foo.cc:60:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i < b.size()) c[i] += b[i];
             ~~^~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> __BigInt_b::subt(const std::vector<int>&, const std::vector<int>&)':
/in/foo.cc:70:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < a.size() && (i < b.size() || c[i] < 0); ++ i)
                     ~~^~~~~~~~~~
/in/foo.cc:70:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < a.size() && (i < b.size() || c[i] < 0); ++ i)
                                      ~~^~~~~~~~~~
/in/foo.cc:72:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i < b.size()) c[i] -= b[i];
             ~~^~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> __BigInt_b::mult(const std::vector<int>&, const std::vector<int>&)':
/in/foo.cc:84:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < a.size(); ++ i)
                     ~~^~~~~~~~~~
/in/foo.cc:86:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < b.size(); ++ j)
                         ~~^~~~~~~~~~
/in/foo.cc: In function 'void __BigInt_b::trial_division(const std::vector<int>&, const std::vector<int>&, std::vector<int>&, std::vector<int>&)':
/in/foo.cc:143:5: warning: left operand of comma operator has no effect [-Wunused-value]
     c, d = a; c.clear(); c.resize(a.size() - b.size() + 1);
     ^
/in/foo.cc:130:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < b.size(); ++ j)\
                     ~~^~~~~~~~~~
/in/foo.cc:148:13: note: in expansion of macro '__trial_division_subt'
             __trial_division_subt();
             ^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:130:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0; j < b.size(); ++ j)\
                     ~~^~~~~~~~~~
/in/foo.cc:155:16: note: in expansion of macro '__trial_division_subt'
         if (p) __trial_division_subt();
                ^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int lowbit(BigInt)':
/in/foo.cc:289:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < s.size(); ++ i)
                     ~~^~~~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:472:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
/in/foo.cc: In function 'int lowbit(BigInt)':
/in/foo.cc:291:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
# 状态 耗时 内存占用
#1 Accepted 4ms 1.711 MiB
#2 Accepted 3ms 1.711 MiB
#3 Accepted 4ms 1.633 MiB
#4 Accepted 3ms 1.727 MiB
#5 Accepted 3ms 1.727 MiB
#6 Accepted 3ms 1.719 MiB
#7 Accepted 2ms 1.742 MiB
#8 Accepted 3ms 1.727 MiB
#9 Accepted 4ms 1.715 MiB
#10 Accepted 4ms 1.715 MiB
#11 Accepted 29ms 1.977 MiB
#12 Accepted 3ms 1.625 MiB
#13 Accepted 47ms 2.109 MiB
#14 Accepted 4ms 1.73 MiB
#15 Accepted 3ms 1.707 MiB
#16 Accepted 7ms 1.711 MiB
#17 Accepted 3ms 1.707 MiB
#18 Accepted 2ms 1.719 MiB
#19 Accepted 4ms 1.703 MiB
#20 Accepted 2ms 1.703 MiB
#21 Accepted 2ms 1.723 MiB
#22 Accepted 2ms 1.734 MiB
#23 Accepted 4ms 1.625 MiB
#24 Accepted 4ms 1.727 MiB
#25 Accepted 26ms 2.0 MiB
#26 Accepted 28ms 2.0 MiB
#27 Accepted 7ms 4.375 MiB
#28 Accepted 6ms 2.117 MiB
#29 Accepted 156ms 4.375 MiB
#30 Accepted 71ms 2.078 MiB
#31 Accepted 16ms 1.969 MiB
#32 Accepted 39ms 2.094 MiB
#33 Accepted 23ms 2.0 MiB
#34 Accepted 7ms 2.113 MiB
#35 Accepted 9ms 2.078 MiB
#36 Accepted 113ms 4.375 MiB
#37 Accepted 85ms 4.375 MiB
#38 Accepted 29ms 2.078 MiB
#39 Accepted 34ms 2.0 MiB
#40 Accepted 29ms 2.086 MiB

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2018-03-03 15:43:04
评测时间
2018-03-03 15:43:04
评测机
分数
400
总耗时
844ms
峰值内存
4.375 MiB