Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

5 int
0 append 4AP0LIhQU 2
1 append oBUmdxEaIHuyL8 759
2 print
/in/correct/dlist.c:185:52: runtime error: load of misaligned address 0x000000000002 for type 'int', which requires 4 byte alignment
0x000000000002: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/correct/dlist.c:185:52 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==41==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000002 (pc 0x000000517dc4 bp 0x7ffcbb37bc10 sp 0x7ffcbb37bbf0 T0)
==41==The signal is caused by a READ memory access.
==41==Hint: address points to the zero page.
    #0 0x517dc3  (/out/package/main+0x517dc3)
    #1 0x5151b2  (/out/package/main+0x5151b2)
    #2 0x7fc7dd461b96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x41cac9  (/out/package/main+0x41cac9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/out/package/main+0x517dc3) 
==41==ABORTING

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

0
1
2
4AP0LIhQU=2
oBUmdxEaIHuyL8=759
3
4
4AP0LIhQU=2
oBUmdxEaIHuyL8=759
MiXRrfQ0KLG=-420