1
0
Fork 0

Update string/hash_vec.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-10-10 11:26:51 +08:00
parent 35a2542e48
commit ce5a34287d
1 changed files with 1 additions and 1 deletions

View File

@ -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());