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.
Yes, without cout worked!!
Thanks!!
you're probably printing too much to the console
What to do when
Max Buffer Size Reached (1.5 MiB)?
This comment is hidden because it contains spoiler information about the solution
Thank you for you answer!! i still stuck but I prefer to continue trying by myself until complete! I feel I am very close since I pass all the test but one, and in my compute even this give my the correct answer
It's fine to ask, but there's nothing hidden, no tricks. If you're still stuck you could post your code with proper code markdown, mark it as a
question
, don't forget to use the spoiler tag, and someone may be able to help you.I suppose that I am wrong, but thats why i ask if there could be hidden trick in the compiling process
Occam's razor says your foreign environment is wrong. No offense, but you'll have to trust the CW testing.
Is there any explanation related with the compiler about why in my computer the code give the correct answer and in codewars not?
My code is in c++
This comment is hidden because it contains spoiler information about the solution
My C++ test works with test, the fail in seconds it is imposible to predict.
Just making
int part of hours
decimal part of hours * 60 = dec_minutes
int part of dec_minutes = minutes
fractional part of dec_minutes * 60 = seg
This is failing in seconds in the last test, 18 vs 19. I can not fix
I totally disagree with the way the test are performed. You can have a perfect solution from the physics point of view and fail depence of the way you have use in extract seconds and minutes.
Test to this class of functions should be done with a error and a float, not integer value.
Very angry on this
Cool and fast solution!!