From e44b7305ce26ecf7fe805e00e491aa131b265008 Mon Sep 17 00:00:00 2001 From: Kaustubh Damania Date: Mon, 19 Oct 2020 11:19:28 +0530 Subject: [PATCH] Update math/ncr_modulo_p.cpp Co-authored-by: David Leal --- math/ncr_modulo_p.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/math/ncr_modulo_p.cpp b/math/ncr_modulo_p.cpp index a000c6a4f..5f31b90a7 100644 --- a/math/ncr_modulo_p.cpp +++ b/math/ncr_modulo_p.cpp @@ -75,6 +75,10 @@ int64_t ncr(int64_t n, int64_t r, int64_t p) { return (fac[n] * denominator) % p; } +/** + * @brief Main function + * @returns 0 on exit + */ int main() { // populate the fac array const int64_t size = 1e6 + 1;