Record Case Detail

Notes

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

Stderr

=================================================================
==27388==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1600016 byte(s) in 200002 object(s) allocated from:
    #0 0x7fa19f9ca448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5640a011093a in queue_initialize(Dlist<Instr>&, int) (/out/package/sam_mem+0x393a)

Direct leak of 1616 byte(s) in 404 object(s) allocated from:
    #0 0x7fa19f9ca448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5640a010ffd0 in stack_initialize(Dlist<int>&, int) (/out/package/sam_mem+0x2fd0)
    #2 0x5640a01116f1  (/out/package/sam_mem+0x46f1)

Direct leak of 72 byte(s) in 18 object(s) allocated from:
    #0 0x7fa19f9ca448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448)
    #1 0x5640a010f405 in main (/out/package/sam_mem+0x2405)

Direct leak of 8 byte(s) in 2 object(s) allocated from:
    #0 0x7fa19f9ca448 in operator new(unsigned long) (/us

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

74367050 40238549 63515342 70422450 8715772 71737197 8723190 9392235 48368954 88022015 29146940 61796386 4841973 8448428 98386347 64573208 58176226 17758718 12436672 75470067 84963602 39438197 75402900 77808852 40973057 95196780 56904955 35569774 79808691 94147023 33284607 86617595 53773646 74132486 99184266 37377065 21658355 1793027 99638090 35400983 21996351 86161263 3075233 59855532 21677505 95364948 50496726 86202373 10684294 22841657 30581397 11889744 66766361 95333565 59779026 38677466 3789888 78552515 72834478 7041188 29447924 16486779 55310379 16560556 32886176 51591001 22574766 89958277 59030007 73725762 65424377 33051583 77211432 77123624 20615547 17235869 66654244 78868323 26214240 78976947 97894341 83056429 64871002 687472 36622495 59350251 21478738 6070472 4793865 15595222 61546196 72664911 78025379 43093979 71378211 89812843 24162379 72371394 52489248 73062366 91338391 56939265 7602538 88915794 47048450 93759104 60489130 56347212 92171939 657073 36350230 60545971 94140944 15464200 31240823 15008

JOJ Answer

313813792 865716743 
1607295060 188086697 1932300455 1607295060 -1870630900 423292865 -1870630900 -2012216832 188086697 2107284735 76782403 1320414551 865716743 313813792 1607295060 865716743