style: initialize NCRModuloP::p with 0

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Piotr Idzik 2023-07-20 09:22:28 +02:00
parent 0c19cdfdb0
commit a928ddcccf

View File

@ -78,7 +78,7 @@ int64_t modInverse(const int64_t& a, const int64_t& m) {
*/ */
class NCRModuloP { class NCRModuloP {
private: private:
const int64_t p; /// the p from (nCr % p) const int64_t p = 0; /// the p from (nCr % p)
const std::vector<int64_t> const std::vector<int64_t>
fac; /// stores precomputed factorial(i) % p value fac; /// stores precomputed factorial(i) % p value