diff --git a/C++ProjectTemplate b/C++ProjectTemplate index 8a62a42..5fa7022 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index 744599e..4ff76a1 100644 --- a/main.cpp +++ b/main.cpp @@ -58,6 +58,7 @@ void printArr(std::vector a, int n){ flowTotal+=flowRate; if (moveAmt1==0){ //We open the valve. Then move to the next one. + currentPos=movePlan1[currentMarker1]; flowRate+=rooms[movePlan1[currentMarker1++]].flowValue; if (currentMarker1 a, int n){ } if (moveAmt2==0){ //We open the valve. Then move to the next one. + currentPos2=movePlan2[currentMarker2]; flowRate+=rooms[movePlan2[currentMarker2++]].flowValue; if (currentMarker2