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.
Seems like a Clang thing for C++17 and up (which is what Codewars uses). On Compiler Explorer, both GCC and MSVC compile without issue (and Clang C++14 ironically). For whatever reason, Clang seems unable to see the size of your array at compile time(?) No idea why that is. But if you are explicit with it, that should solve it.
I agree.
tribonacci
You can't edit/delete your post after it has been replied to. Don't worry, it's flagged as a spoiler and only people who have completed the kata can see it. In the future, please use the solutions page to discuss solutions.
Please don't post solutions in the discourse. See https://docs.codewars.com/training/troubleshooting#post-discourse.
Not a kata suggestion.
Hint != kata suggestion. See https://docs.codewars.com/training/troubleshooting#post-discourse.