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.
When your code is run, there is an error message:
undefined reference to dontGiveMeFive
. This shows the fundamental problem with your code, it does not contain the original declaration of the function that was present when you began the kata, so you deleted that code at some point. Here is what that code looks like:Notice that it is passed two parameters, so you will not need to use
scanf()
in your code. Also your code does not need amain()
function, as thedontGiveMeFive()
function will be run by the testing suite to see if it returns the correct value. And, this is the final point, that your code should return the value, not print it.You'll never solve it if you use scanf and your own made up function names.
Hello @ChristianJesus, you should know that positing code like this is forbidden, because everyone can see it on the open comments section, (I have added the spoiler tag to your comment).
Lol. That's just desperate. Hint: use an array.
No, but you can forfeit the kata and see all the solutions without gaining any honor point.