Ad
  • Custom User Avatar

    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.

  • Custom 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!

  • Custom User Avatar

    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.

  • Custom 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

    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.

  • Custom User Avatar

    its C++.

  • Custom User Avatar

    Please state the language you're talking about.

  • Custom User Avatar

    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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    good code for bad test case checking, this thing will not survive a string with 1e5 'a'-s in it

  • Custom User Avatar
  • Custom User Avatar