Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==22699==ERROR: LeakSanitizer: detected memory leaks Direct leak of 396 byte(s) in 99 object(s) allocated from: #0 0x7fe35bdc2448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x55f3a580f2ae in stack<int>::pop() (/out/package/sam_mem+0x52ae) Direct leak of 264 byte(s) in 33 object(s) allocated from: #0 0x7fe35bdc2448 in operator new(unsigned long) (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe0448) #1 0x55f3a580c6da in main (/out/package/sam_mem+0x26da) #2 0xe2cc4f1af2bff6ff (<unknown module>) SUMMARY: AddressSanitizer: 660 byte(s) leaked in 132 allocation(s).
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
80094675 46773160 88785988 98436007 93644103 46814601 52023461 16791725 25615620 25938929 64659406 50640742 14250594 13383223 38951139 36788396 70749274 99315343 46541593 78433327 58825777 18394201 88557307 54284557 27549451 77501885 25157555 47965495 42068493 61513040 95201702 7992670 12340940 24644424 74336079 41843922 65989928 73975617 46461826 37982413 12457476 90085793 13053976 74409116 83678453 87914634 5066014 35052823 8169333 70404110 97983666 44972382 17396165 11338692 98383662 31013140 63880103 -48754520 26894199 25603781 32560495 95189332 78059581 1907729596 39289368 148855 71257277 23330695 12489014 26746644 65881565 67611402 97102243 12263094
JOJ Answer
1410229087 1874512964 430196835 430196835 1438094767 467627935 1791930715 1603175461 1344448245 1793516632 1438094767 1793516632 515004171 1515923624 1342466754 193413795 1307894613 1042579436 1342466754