Ad
  • Custom User Avatar

    Hi there,

    When i press the "Test" button, my code managed to pass for both kind of test cases with negative and positive int inside the array. However, when i did the full test. There was an error code 139 without any logs. May i know what i did wrong or how can i improve? I am using c++ Clang

  • Custom User Avatar

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

  • Custom User Avatar

    Hi,

    I managed to get both the basic test and random test to be lighted up as green. It shows 1 pass and zero fail. But it shows this erro in the STDRR
    *** Error in `./test': free(): invalid next size (fast): 0x00000000013456e0 ***
    ======= Backtrace: =========
    /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f4ce30b27e5]
    /lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f4ce30bb37a]
    /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f4ce30bf53c]
    ./test[0x40807a]....

    HELP