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.
Op solved it, closing
cool!
notice that the declaration shows
int *extraPerfect
? that*
means you need to return a pointer to a dynamically allocatedint
array containing the extra perfect numbers. if it had just beenint extraPerfect
you would only have been returning anint
value. finally: you also need to set the provided pointer*count
to the length of the array for which you are returning a pointer. hope that helps.You have an infinite loop in your code when bounce is 1.
good (I'm the translator) I was just checking your code. congrats!
It means exactly the opposite. Expected and actual values aren't equal, that's why you're getting this message. Maybe try to
printf(...)
the input, and your output to make sure they're correct?