Ad
  • Custom User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    Thanks a lot for the speedy feedback! Indeed there was a bug in treating n=0 case.

  • Custom User Avatar

    Tests seem to crash in one case: when vector returned by you is too short. Otherwise, C++ version of the kata seems to be OK. I believe that the error you receive is caused by bug in your solution: either it segfauls, or tests segfault verifying answer it returned (for example because it's too short).

    You can see this paragraph of FAQ on some hints on the specific error you get.

  • Custom User Avatar

    Solving with C++ I am getting the error below. At the same time, on my MacOS I compile and execute examples properly.

    UndefinedBehaviorSanitizer:DEADLYSIGNAL
    ==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000042c11a bp 0x0000026000e0 sp 0x7ffd7af4c260 T1)
    ==1==The signal is caused by a READ memory access.
    ==1==Hint: address points to the zero page.
    ==1==WARNING: invalid path to external symbolizer!
    ==1==WARNING: Failed to use and restart external symbolizer!
    #0 0x42c119 (/workspace/test+0x42c119)
    #1 0x4254c7 (/workspace/test+0x4254c7)
    #2 0x428026 (/workspace/test+0x428026)
    #3 0x4268ae (/workspace/test+0x4268ae)
    #4 0x426438 (/workspace/test+0x426438)
    #5 0x42600b (/workspace/test+0x42600b)
    #6 0x42bd55 (/workspace/test+0x42bd55)
    #7 0x4256ed (/workspace/test+0x4256ed)
    #8 0x7f2dbf3d6b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #9 0x404489 (/workspace/test+0x404489)

    UndefinedBehaviorSanitizer can not provide additional info.
    ==1==ABORTING