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.
There also may be hidden requirements such as they pass in a different data/var type and it could through off the code. For instances like this if you truly believe its an error you can raise an issue in the kata and see if it gets fixed, otherwise it may be an edge case.
If the errors are not traceables but because of the test, then the test conditions must be met, which are sometimes not written in the instructions.
You are right. I didnt notice.
But this is just one of many examples.
You're NOT supposed to post your code publicly.
Name at least one IDE/compiler which would allow you to modify a constant string, or stop talking nonsense if you can't.
This is a very simple kata where i just make a string to be uppercase.
std::string makeUpperCase (const std::string& input_str)
{
std::transform (input_str.begin(), input_str.end(), std::toupper);
return input_str;
}
or
for (int i = 0; i < str.length(); i++)
{
str[i] = std::toupper(str[i]);
}
They both dont work
Obviously, there is always a reason for these errors to be there. Its just that they work in my IDE and this is such simple code. Very annoying.
Can you give an example?
There are so many katas that i can perfectly solve in my IDE, but not on codewars. I have to skip many simple katas because of errors im getting, even though the logic and code is appereantly fine, since i can execute them on my IDE perfectly. Its obnoxious to not be able to complete the kata when the implemented compiler is giving me an error for a single-line program.
Is there anything i can do about that? Sorry for the dumb question