LINUX.ORG.RU

История изменений

Исправление KennyMinigun, (текущая версия) :

<< std::endl;

JFYI: https://www.youtube.com/watch?v=GMqQOEZYVJQ

-constexpr int leapDay(int year) {
-    assert(year > 0);
-    return (!(year % 4) && (year % 100)) || !(year % 400) ? 1 : 0;
-}
+//constexpr int leapDay(int year) {
+//    assert(year > 0);
+//    return (!(year % 4) && (year % 100)) || !(year % 400) ? 1 : 0;
+//}

ТЗ же не было...

+            std::cout << "You are slowpoke! The Programmers Day has left " << -daysLeft << " day(s) ago" << std::endl;
+            std::cout << "You are slowpoke! The Programmers Day was " << -daysLeft << " day(s) ago\n";

;-)

Исходная версия KennyMinigun, :

<< std::endl;

JFYI: https://www.youtube.com/watch?v=GMqQOEZYVJQ

+            std::cout << "You are slowpoke! The Programmers Day has left " << -daysLeft << " day(s) ago" << std::endl;
+            std::cout << "You are slowpoke! The Programmers Day was " << -daysLeft << " day(s) ago\n";

;-)