Update string/hash_vec.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
35a2542e48
commit
ce5a34287d
|
@ -73,7 +73,7 @@ struct range_hash {
|
|||
template <typename T>
|
||||
range_hash(const T& vec) {
|
||||
hp.emplace_back();
|
||||
hash_vec<ll> hs(vec.size());
|
||||
hash_vec<ll> hs(vec.size() + 1);
|
||||
for (auto&& x : vec) {
|
||||
hs.push_back(x);
|
||||
hp.emplace_back(hs.hash());
|
||||
|
|
Loading…
Reference in New Issue