Record Case Detail

Notes

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

Stderr

=================================================================
==24343==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7fff49af8c70 at pc 0x5614ba6f5b70 bp 0x7fff49af83f0 sp 0x7fff49af83e0
WRITE of size 4 at 0x7fff49af8c70 thread T0
    #0 0x5614ba6f5b6f in main (/out/package/sam_mem+0x5b6f)
    #1 0x7f90fc600b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #2 0x5614ba6f6169 in _start (/out/package/sam_mem+0x6169)

Address 0x7fff49af8c70 is located in stack of thread T0 at offset 2000 in frame
    #0 0x5614ba6f222f in main (/out/package/sam_mem+0x222f)

  This frame has 23 object(s):
    [32, 33) '<unknown>'
    [96, 100) 'opsize'
    [160, 164) 'instsize'
    [224, 228) 'temp'
    [288, 292) '<unknown>'
    [352, 356) '<unknown>'
    [416, 420) 'temp2'
    [480, 484) 'temp1'
    [544, 576) '__tmp'
    [608, 640) '__tmp'
    [672, 704) '__tmp'
    [736, 768) '__tmp'
    [800, 832) '__tmp'
    [864, 896) '__tmp'
    [928, 960) '__tmp'
    [992, 1024) '__tmp'
    [1056, 113

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

1100217460 -2147473392 1113311975 
991126037 1823808463 -455709487 1338111506 1705195028 -1609537983 635844959 1726926833 1100217460 1566602227 1331103719 1688584211 2126042410 635844959 1055424873 -455709487