Record Case Detail

Notes

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

Stderr

=================================================================
==23935==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd76906e30 at pc 0x56479c5ae80d bp 0x7ffd769065b0 sp 0x7ffd769065a0
WRITE of size 4 at 0x7ffd76906e30 thread T0
    #0 0x56479c5ae80c in main (/out/package/sam_mem+0x580c)
    #1 0x7efc5fccbb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #2 0x56479c5af169 in _start (/out/package/sam_mem+0x6169)

Address 0x7ffd76906e30 is located in stack of thread T0 at offset 2000 in frame
    #0 0x56479c5ab22f 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 2066598582
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 
PUSHI 1100902635 PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP PUSHI 143712661 NOOP PUSHI 14 STORE NOOP PUSHI 8 LOAD PUSHI 1301674375 HALT 
59236248 19415547 55585379 20652759 35944819 12350931 34762895 68755663 67438496 37176545 81253422 65083703 59834632 46602040 20359801 54088791 
PUSHI 1100902635
25427676 93934504 64690425 50248954 76202599 66816898 10670047 8615449 5516253 2066598582 1100902635 
PUSHI 1 STORE PUSHI 4 STORE NOOP NOOP NOOP NOR ADD NOOP PUSHI 8 LOAD NOR PUSHI 10 LOAD NOOP PUSHI 10 STORE PUSHI 963601451 IFZ 4 NOR PUSHI 0 STORE PUSHI 118538716 NOOP PUSHI 13 LOAD POP PUSHI 1778506840 POP PUSHI 139379364 IFZ 29 PUSHI 11 LOAD NOOP IFZ 9 PUSHI 4 LOAD POP POP PUSHI