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.
This comment is hidden because it contains spoiler information about the solution
Yea, at least i will remember it forever i guess haha
This solution will fail if there are more than 101 followers. There's no need to write your own "number to string". Since C++11 there's std::to_string which will do the trick.
Damn, I forgot about this :\
If you return nothing in C++, you'll instantly receive
error 132
, and there will be no output in the stdout.@Chrono79's snippet should work fine.There should be areturn
statement at the end of the function for it to compile.You're welcome. I always thought you used the print the input part before your code, and didn't know about what FArekkusu says down below (C++ is not one of the languages I know best).
Nevermind, thanks for responses (I'm idiot)
How could you not know the values if they're printed in the screen?
Analyze that input, read the docs on the methods your function use (specially how it handles those input values) and you'll have to change it to fix it.
Yes, but what it gives me if I don't know the values?
You were told to print input, and given a link saying how to print a vector; are you not very smart?
Sorry but i don't get it.
Is there anny way to see input values for case 9, unless what can i do to fix the issue?
https://stackoverflow.com/questions/10750057/how-to-print-out-the-contents-of-a-vector
How can I print the input of the test?
Your code is failing the 9th test, labeled Test 8 (I though it was another one), try printing the input and you'll see why, it's easy to fix. It's not related to same multiplicity and your code is ok about deleting the values.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...