Loading problems/LabOne_ChapterFour.h +2 −2 Original line number Diff line number Diff line Loading @@ -46,10 +46,10 @@ void labOne_pZero(); * Max: 9 * 47 * * This is because 20+14+13 = 47: * This is because 20+14+13 = 48: * a. 2+4+6+8 = 20 * b. 1+4+9 = 14 * c. 1+4+8 = 13 * c. 2+4+8 = 14 */ void labOne_pOne(); Loading tests/LabOne.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ bool test_labOne_pOne() { Common::redirIO("9"); labOne_pOne(); out = stoi(Common::restoreIO()); if (out!=47) if (out!=48) return false; return true; Loading Loading
problems/LabOne_ChapterFour.h +2 −2 Original line number Diff line number Diff line Loading @@ -46,10 +46,10 @@ void labOne_pZero(); * Max: 9 * 47 * * This is because 20+14+13 = 47: * This is because 20+14+13 = 48: * a. 2+4+6+8 = 20 * b. 1+4+9 = 14 * c. 1+4+8 = 13 * c. 2+4+8 = 14 */ void labOne_pOne(); Loading
tests/LabOne.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ bool test_labOne_pOne() { Common::redirIO("9"); labOne_pOne(); out = stoi(Common::restoreIO()); if (out!=47) if (out!=48) return false; return true; Loading