From 080a19d9ed99bba2978a5ec48d641eb9b35ec6cd Mon Sep 17 00:00:00 2001 From: Mann Patel <46739555+manncodes@users.noreply.github.com> Date: Sun, 6 Jun 2021 09:38:20 +0530 Subject: [PATCH] Update data_structures/sparse_table.cpp Co-authored-by: David Leal --- data_structures/sparse_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/sparse_table.cpp b/data_structures/sparse_table.cpp index b402e3e27..d5d1d6784 100644 --- a/data_structures/sparse_table.cpp +++ b/data_structures/sparse_table.cpp @@ -44,7 +44,7 @@ namespace sparse_table { struct Sparse_table { const static int N = 12345; ///< the maximum size of the array. const static int M = 14; ///< ceil(log2(N)). - int n; ///< size of input array. + int n = 0; ///< size of input array. /** @warning check if `N` is not less than `n`. if so, manually increase the * value of N */