Fixed rerun bug

This commit is contained in:
2021-07-03 22:33:48 -04:00
parent c4434fec59
commit a1a7938281

View File

@@ -265,9 +265,11 @@ void Problem13::solve(){
//Start the timer //Start the timer
timer.start(); timer.start();
//Get the sum of all the numbers //Get the sum of all the numbers
sum = mee::getSum(nums); sum = mee::getSum(nums);
//Stop the timer //Stop the timer
timer.stop(); timer.stop();
@@ -280,6 +282,7 @@ void Problem13::reset(){
sum = 0; sum = 0;
nums.clear(); nums.clear();
reserveVectors(); reserveVectors();
setNums();
} }
//Gets //Gets