In the old days, there was a computer program that would fail every day at roughly 6:12 pm. Why?Answer on piazza:
In the program, the time from midnight is represented by an unsigned short, which goes up to 2^16 - 1 = 65535. At 6:12:15, the seconds from midnight will have been 18 * 3600 + 12 * 60 + 15 = 65535. So then the variable overflows.New problem: what's wrong with the following code?
/* * default */ default: break;
Students from CS 223 are invited to attend. Also, we will be having dinner with the speaker at Mory's at 6pm. Please let me know if you would be interested in coming to dinner.
Interested in health, hacks, or helping kids? Join HackPeds at the Yale CEID on Nov. 4-5 - a two-day hackathon dedicated to solving pediatric healthcare challenges! In just 23 hours, participants will pitch pain points, develop solutions in teams, and present their final products to a panel of judges for prizes. There will be over $1,000 in prizes, along with free food and exceptional mentorship.This event is capped at 60 people, so sign up now at bulldoghacks.org! If you have any questions, please contact us at yalebulldoghacks@gmail.com!