[Solved] Usaco. Friday the thirteen. What is wrong with my code?


Your month comparisons are not correct.

February is the 2nd month, not the 5th.
As the second month, it doesn’t have 30 days (at least since I’ve been alive).

You may want to swap those constants.

1

solved Usaco. Friday the thirteen. What is wrong with my code?