Record Case Detail

Notes

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

Stderr

=================================================================
==23940==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffcd5038b30 at pc 0x55cdf5375b70 bp 0x7ffcd50382b0 sp 0x7ffcd50382a0
WRITE of size 4 at 0x7ffcd5038b30 thread T0
    #0 0x55cdf5375b6f in main (/out/package/sam_mem+0x5b6f)
    #1 0x7f1108720b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #2 0x55cdf5376169 in _start (/out/package/sam_mem+0x6169)

Address 0x7ffcd5038b30 is located in stack of thread T0 at offset 2000 in frame
    #0 0x55cdf537222f 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

PUSHI 1649711916
93228260 92568512 58348932 42447982 28784986 13050415 45149713 28958753 56552544 50581226 1649711916 
POP ADD POP PUSHI 841201080 NOR PUSHI 8 STORE NOR ADD ADD ADD NOR NOR NOOP PUSHI 2091405970 POP PUSHI 1998913879 NOR NOOP PUSHI 444469058 PUSHI 3 LOAD NOOP NOR PUSHI 233034299 NOR PUSHI 11 LOAD POP PUSHI 4 STORE PUSHI 55044502 POP PUSHI 10 STORE PUSHI 12 LOAD NOOP PUSHI 9 STORE PUSHI 1363014917 NOOP IFZ 29 NOOP NOOP PUSHI 2 LOAD IFZ 7 PUSHI 12 LOAD PUSHI 8 STORE PUSHI 11 LOAD IFZ 13 NOOP PUSHI 495927816 PUSHI 360636001 PUSHI 700663831 PUSHI 43091797 PUSHI 1663146068 IFZ 14 NOOP POP NOR NOOP NOR POP PUSHI 7 LOAD IFZ 24 NOOP PUSHI 1865236957 PUSHI 6 LOAD IFZ 1 PUSHI 14 LOAD IFZ 16 PUSHI 3 LOAD NOR POP PUSHI 1991931052 PUSHI 1673717628 NOOP POP IFZ 8 NOOP NOOP NOOP PUSHI 1485088237 PUSHI 14 LOAD PUSHI 6 STORE PUSHI 2 STORE NOOP NOOP NOOP PUSHI 299926287 PUSHI 4 LOAD POP PUSHI 0 IFZ 22 NOOP POP ADD NOR IFZ 26 STORE IFZ 22 POP PUSHI 838976936 LOAD STORE IFZ 24 STORE HALT NOR STORE PUSHI 1728076963