Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
great
There is no ISO C 2020 standard. There is no reason to assume this valid syntax will be invalidated in the future.
No
Is this valid ISO 2020 syntax in C?
This comment is hidden because it contains spoiler information about the solution
I've never seen this syntax before and tried googling it with no success. Can someone briefly explain it to me??
Fixed. Thank you for reporting.
I fixed this kata (hopefully).
I think the reason your solution is now marked invalid is that you modify the global variable
daysPerMonth
, changing the days in February, but you don't reset it anywhere so it may be29
afterepoch::epoch()
has finished.Could you please check test cases (as already user ds13 wrote). It seems that there's incorrect result for input "1804289383".
I'm not quite sure about it, but seems that there should be "std::string" instead of "string" in the function proposal.
BTW. I've enjoyed your's task