Notes
This function is in beta test. Please help improve it in the issues
here.
==50559==WARNING: AddressSanitizer failed to allocate 0xfffffffffffffffc bytes ==50559==AddressSanitizer's allocator is terminating the process instead of returning 0 ==50559==If you don't like this behavior set allocator_may_return_null=1 ==50559==AddressSanitizer CHECK failed: /build/llvm-toolchain-6.0-QjOn7h/llvm-toolchain-6.0-6.0/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:225 "((0)) != (0)" (0x0, 0x0) #0 0x4e5a45 (/out/package/ex5+0x4e5a45) #1 0x5032f5 (/out/package/ex5+0x5032f5) #2 0x4ebe36 (/out/package/ex5+0x4ebe36) #3 0x4ebe76 (/out/package/ex5+0x4ebe76) #4 0x4279f6 (/out/package/ex5+0x4279f6) #5 0x4dc8cb (/out/package/ex5+0x4dc8cb) #6 0x515093 (/out/package/ex5+0x515093) #7 0x51605d (/out/package/ex5+0x51605d) #8 0x7fa9d18f9b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #9 0x41ca39 (/out/package/ex5+0x41ca39)
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
-26 -26 75 -26 75 -86 -26 75 -86 -26 75 -86 -26 75 -99 -86 -26 75 -99 -86 -26 75 -99 -86 -29 -26 75 -99 -86 -29 -26 67 75 -99 -86 -29 -26 67 75 -99 -86 -29 -26 50 67 75 -99 -86 -54 -29 -26 50 67 75 -99 -86 -54 -29 -26 50 65 67 75 -99 -86 -54 -29 -26 50 65 67 75 -99 -86 -54 -29 -26 50 65 67 75 -99 -86 -60 -54 -29 -26 50 65 67 75 -99 -86 -60 -54 -29 -26 50 65 67 75 -99 -86 -60 -54 -29 -26 -23 50 65 67 75 -99 -86 -60 -54 -29 -26 -23 50 65 67 75 -99 -86 -60 -54 -29 -26 -23 30 50 65 67 75 -99 -86 -60 -54 -29 -26 -23 30 50 65 67 75 -99 -86 -60 -54 -29 -26 -23 30 50 65 67 75 94 -99 -86 -60 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -55 -54 -29 -26 -23 30 65 67 75 94 -99 -86 -60 -55 -54 -29 -26 -23 27 30 65 67 75 94 -99 -86 -60 -55 -54 -29 -26 -23 27 30 61 65 67 75 94 -99 -86 -61 -60 -