Ad
  • Default User Avatar

    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!

  • Default User Avatar

    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.

    Your assertion "...as the correct answer (this is from the checker)" is wrong. Verify your string: it is badly copied.

    this question is asked in all disscussions and haven't been resolved

    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:

    UndefinedBehaviorSanitizer:DEADLYSIGNAL
    ==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000426bec bp 0x000000000000 sp 0x7ffce6b83c30 T1)
    ==1==The signal is caused by a READ memory access.
    ==1==Hint: address points to the zero page.
    .........
    

    Please fix your code:-) Cheers.

  • Custom User Avatar

    Please state the language you're talking about.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution