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.
you meant the string ive returned looks like
" (something)"
? Thats because i couldnt return the correct string or else i cant output any debug information.Also, my solution made the checker return in stderr exactly what you said in the first comment (as is has been for the past 3 days, only on that paticular test). Is this normal ? since anything other than the "correct" string i return does not make stderr output that message, and i still fail that test though.
I already said that you had wrongly copied the answer to that test.
Look carefully at what the test outputs when it fails and at what you had copied. When I looked at your solution for my first answer you had at the beginning of your copy an extra white space!
sorry about the "this question is asked in all disscussions and haven't been resolved", I was meaning that Ive asked this question in the "all" disscussion tab. Im new to this platform.
about the paticular test case, did you mean that the answer I'm assuming to be correct, is actually wrong ? Because that is what the checker is expecting me to return, and i triple checked it to make sure im not seeing things. I even tried returning a const string to other answers aswell and it works.
Sorry if i sound furious or something, its just that im frustrated about this one tc and its bothering me alot. A single respond saying that the string im assuming to be correct is wrong is enough.
Your assertion "...as the correct answer (this is from the checker)" is wrong. Verify your string: it is badly copied.
It is asked only by you, 3 or 4 days ago. I verified several solutions at that time and all worked fine so there was nothing to fix (note that 597 people passed the C++ kata).
I corrected the string you badly "copied" from the checker. This time the corresponding test is passing but here is what I get:
Please fix your code:-) Cheers.
in C++, the final pre-random answer is crashing the checker. I've tried returning the whole string answer and it crashes everytime. removed 1 character (last bracket) and it runs fine again saying wrong answer. other big random tests works fine on my solution.
the test
{100,100,107,110,116,118,123,126,158,204}
gives"(2 1032)(3 453)(5 310)(7 126)(11 110)(17 204)(29 116)(41 123)(59 118)(79 158)(107 107)"
as the correct answer (this is from the checker), and anytime i try to return this string the checker crashes.this question is asked in all disscussions and haven't been resolved for 3 days. Please fix.
its C++.
Please state the language you're talking about.
final pre-random answer is crashing the checker. I've tried returning the whole string answer and it crashes everytime. removed 1 character (last bracket) and it runs fine again saying wrong answer. other big random tests work fine on my solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
good code for bad test case checking, this thing will not survive a string with 1e5 'a'-s in it
tyty 👌
pro