From d431d1602852b4f94d84e5f303bdfb39b1dc5a75 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 24 Jan 2023 11:01:25 +0100 Subject: Fix --- Year_2/Algorithms/resto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Year_2/Algorithms/resto.cc b/Year_2/Algorithms/resto.cc index 53fd6f6..87ab43d 100644 --- a/Year_2/Algorithms/resto.cc +++ b/Year_2/Algorithms/resto.cc @@ -12,7 +12,7 @@ change(vector& coins, int sum) int n = coins.size(); int* table = new int[sum+1]; - memset(table, sum, 0); + memset(table, 0, sum); table[0] = 0; for (int i = 1; i < sum+1; ++i) { -- cgit v1.2.3-18-g5258