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.
If the error message is
0 should equal 9
neither of those is the input, the first one is what your function wrongly returned, the other the expected value, to know what the input is, print it, read this: https://docs.codewars.com/training/troubleshooting#print-inputThere might be a mistake in your own observation as well. Don't rule that out, because that's the most likely cause. Where and how does it say this?
Hi, you need to use a spoiler tag when posting code, (I have addedthe tage to your comment).
Hi. A few things: use a spoiler flag when posting elements of solutions, or anyone who has not solved this kata will be able to see your code (and maybe you give the solution with only a little typo). Then please say clearly which language you're using when asking for help, I guess it's C. Also, please use markdown tags to format your code or it's very discomfortable to read, see: how-to-format-code-in-markdown. The code you're giving is syntactically incorrect since nsizeof(int) throws an error (I guess it is in fact n, sizeof(int) ? We should not have to guess what you're doing, and try to rewrite your code for you, so please provide exactly a code you're using with the corresponding error). Invalid memory access means you probably try to access some element out of bounds of an array, but I can't tell more (I think there are several other problems with your code; I would advice to try to write a cleaner code with single loops and no gotos, but I may be wrong).