Record Case Detail

Notes

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

Stderr

100 int
0 append L619asTm -36876
1 append fwnAoN4Ig 44998
/in/dlist.c:261:14: runtime error: member access within null pointer of type 'node_t' (aka 'struct linked_node')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dlist.c:261:14 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==215==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x0000005169d2 bp 0x7ffec95d5370 sp 0x7ffec95d5320 T0)
==215==The signal is caused by a WRITE memory access.
==215==Hint: address points to the zero page.
    #0 0x5169d1  (/out/package/main+0x5169d1)
    #1 0x515327  (/out/package/main+0x515327)
    #2 0x7f5d523e2b96  (/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+0x5169d1) 
==215==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
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
false
18
19
20
21
22
23
false
24
25
L619asTm=-36876
fwnAoN4Ig=44998
YJQFrK0fwNHXZRq=-11440
FLAiuYpE=65359
daYCu5c7DW2b=-11006
MVudPk0Af8G6=11531
pYaxK=43758
uSMGF=-34549
TJeQDRb20=34186
vMxC9w4hy=36845
Uw1jOTPqNRd=-49806
Qg9m7PU=41544
NVTK7tHMUker0R1=-7523
FGloLg=64519
s1LAxDE=-33213
BfZ6d7O=42186
H59j40=-63184
IQA9fnzk=-52162
01gT4WDyc2X=-31631
D1MzHv=18871
9QlmKBbknqzepW=-10402
35RruwcQCVMxLsN=25160
FY5fnxd=207
26
27
28
29
L619asTm=-36876
fwnAoN4Ig=44998
YJQFrK0fwNHXZRq=-11440
FLAiuYpE=65359
daYCu5c7DW2b=-11006
MVudPk0Af8G6=11531
pYaxK=43758
uSMGF=-34549
TJeQDRb20=34186
vMxC9w4hy=36845
Uw1jOTPqNRd=-49806
Qg9m7PU=41544
NVTK7tHMUker0R1=-7523
FGloLg=64519
s1LAxDE=-33213
BfZ6d7O=42186
H59j40=-63184
IQA9fnzk=-52162
01gT4WDyc2X=-31631
D1MzHv=18871
9QlmKBbknqzepW=-10402
35RruwcQCVMxLsN=25160
FY5fnxd=207
5ZfKXW3AGFImB=211
D8qdWc4ZGYA=54435
F6CW0KkA5Rc=-61567
FLAiuYpE=65359
FGloLg=64519
D8qdWc4ZGYA=54435
fwnAoN4Ig=44998
pYaxK=43758
BfZ6d7O=42186
Qg9m7PU=41544
vMxC9w4hy=368