Ad
  • Custom User Avatar

    Code fixed!! Thanks a lot.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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] ]

  • Custom User Avatar

    Problem solved. I was not considering one case in my code. Thanks

  • Custom User Avatar

    Thank you very much for your observations, I will solve those errors and try again.

  • Custom User Avatar

    also your code potentially accesses array elements out of bounds, you're not checking the index in your first loop

  • Custom User Avatar

    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

  • Custom User Avatar

    Very good kata. Back to university for a few hours.

  • Custom User Avatar

    Very good kata.

  • Custom User Avatar

    Ok thanks.

  • Custom User Avatar

    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...

  • Custom User Avatar

    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

  • Custom User Avatar

    To post an issue give the input, your output, the expected. Otherwise it is impossible to correctly answer.

  • Custom User Avatar

    Try to solve it in Erlang but I got "Internal error", translated the solution to Elixir and passed all tests

  • Custom User Avatar

    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...