Skip to content

Commit 8ed74c6

Browse files
fix: add an include for functional in catalan_numbers
1 parent 939ca4a commit 8ed74c6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dynamic_programming/catalan_numbers.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
https://oeis.org/A000108/
1010
*/
1111

12-
#include <cassert> /// for assert
13-
#include <cstdint> /// for std::uint64_t
14-
#include <cstdlib> /// for std::size_t
15-
#include <numeric> /// for std::transform_reduce
16-
#include <vector> /// for std::vector
12+
#include <cassert> /// for assert
13+
#include <cstdint> /// for std::uint64_t
14+
#include <cstdlib> /// for std::size_t
15+
#include <functional> /// for std::plus
16+
#include <numeric> /// for std::transform_reduce
17+
#include <vector> /// for std::vector
1718

1819
/**
1920
* @brief computes and caches Catalan numbers

0 commit comments

Comments
 (0)