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.
Code fixed!! Thanks a lot.
That means that your code was failing some tests but the testing framework doesn't know how to print vectors of pairs. I added a function to do that so you can exactly see your errors.
Hi everyone, can someone please help me with this error in Random Tests (C++):
Expected: equal to [ [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type] ]
Actual: [ [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type], [unsupported type] ]
Problem solved. I was not considering one case in my code. Thanks
Thank you very much for your observations, I will solve those errors and try again.
also your code potentially accesses array elements out of bounds, you're not checking the index in your first loop
Hi everyone, please can anyone help me with the following error using C:
Predicate: isEven
Source:
{ 2, 6, 4, 10, 1, 5, 4, 3 }, count = 8
Expected:
{ 1, 5, 4, 3 }, count = 4
Actual:
{ 1, 5, 4, 3 }, count = 4
Predicate: isEven
Source:
{ 2, 100, 1000, 10000, 5, 3, 4, 6 }, count = 8
Expected:
{ 5, 3, 4, 6 }, count = 4
Actual:
{ 5, 3, 4, 6 }, count = 4
Predicate: isEven
Source:
{ 998, 996, 12, -1000, 200, 0, 1, 1, 1 }, count = 9
Expected:
{ 1, 1, 1 }, count = 3
Actual:
{ 1, 1, 1 }, count = 3
Very good kata. Back to university for a few hours.
Very good kata.
Ok thanks.
Erlang errors are cryptic but I notice "... failed *** **in function kata:partList/1... error undef". So it appears that there is an error somewhere in your calls.
The CW version is 20. I tried your solution on my computer with "Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit]" and with this version your solution passes my tests.
There are not many CWarriors for Erlang. I tried the solutions that have already passed without problems.
Unfortunately I can't say more...
Internal Error
*** test generator kata_tests:partList_test_/0 failed ***
**in function kata:partList/1
called as partList(["I","wish","I","hadn't","come"])
in call from kata_tests:testing/2 (/home/codewarrior/erlang/build/test/lib/cw/test/kata_tests.erl, line 5)
in call from kata_tests:partList_test/0 (/home/codewarrior/erlang/build/test/lib/cw/test/kata_tests.erl, line 13)
in call from kata_tests:partList_test/0
**error:undef
To post an issue give the input, your output, the expected. Otherwise it is impossible to correctly answer.
Try to solve it in Erlang but I got "Internal error", translated the solution to Elixir and passed all tests
I had the same error and solved it deleting the "msg" part. First time I have to modify a test in order to submit a solution.
Loading more items...