Ad
  • Default User Avatar

    @g964 you there??

  • Default User Avatar

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

  • Default User Avatar

    My code is passing all the test cases but when i try attempt, it shows error.

    STDERR

    UndefinedBehaviorSanitizer:DEADLYSIGNAL

    ==1==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00000042698b bp 0x000000000000 sp 0x7ffcb05a9c30 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 0x42698a  (/workspace/test+0x42698a)
    #1 0x42a3f8  (/workspace/test+0x42a3f8)
    #2 0x42861e  (/workspace/test+0x42861e)
    #3 0x428087  (/workspace/test+0x428087)
    #4 0x427d4b  (/workspace/test+0x427d4b)
    #5 0x42cd65  (/workspace/test+0x42cd65)
    #6 0x42667d  (/workspace/test+0x42667d)
    #7 0x7fd8f02e8b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #8 0x404879  (/workspace/test+0x404879)
    

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

    Please help me.