diff --git a/src/Problems/Problem13.cpp b/src/Problems/Problem13.cpp index 3c95cc0..bdc1e49 100644 --- a/src/Problems/Problem13.cpp +++ b/src/Problems/Problem13.cpp @@ -265,9 +265,11 @@ void Problem13::solve(){ //Start the timer timer.start(); + //Get the sum of all the numbers sum = mee::getSum(nums); + //Stop the timer timer.stop(); @@ -280,6 +282,7 @@ void Problem13::reset(){ sum = 0; nums.clear(); reserveVectors(); + setNums(); } //Gets