From 4d211fc51bd46d3677b86146742c1480076d44ea Mon Sep 17 00:00:00 2001 From: Pardeep Bhatt Date: Wed, 23 Sep 2020 16:50:03 +0530 Subject: [PATCH] fixed compilation error in cut_rod.cpp code --- dynamic_programming/cut_rod.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic_programming/cut_rod.cpp b/dynamic_programming/cut_rod.cpp index 136c78dbb..fb045acd5 100644 --- a/dynamic_programming/cut_rod.cpp +++ b/dynamic_programming/cut_rod.cpp @@ -3,6 +3,7 @@ contains prices of all pieces of size smaller than n. Determine the maximum value obtainable by cutting up the rod and selling the pieces.*/ +#include #include using namespace std; int cutrod(int p[], int n) {