Notes
This function is in beta test. Please help improve it in the issues
here.
================================================================= ==3314==ERROR: LeakSanitizer: detected memory leaks Direct leak of 896 byte(s) in 16 object(s) allocated from: #0 0x517860 (/out/package/test_com+0x517860) #1 0x51c115 (/out/package/test_com+0x51c115) #2 0x52c9ee (/out/package/test_com+0x52c9ee) #3 0x7f7876b97b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) Indirect leak of 31 byte(s) in 1 object(s) allocated from: #0 0x517860 (/out/package/test_com+0x517860) #1 0x51f4ab (/out/package/test_com+0x51f4ab) #2 0x51f3eb (/out/package/test_com+0x51f3eb) #3 0x51f258 (/out/package/test_com+0x51f258) #4 0x51ee7f (/out/package/test_com+0x51ee7f) #5 0x51ecee (/out/package/test_com+0x51ecee) #6 0x51dc0c (/out/package/test_com+0x51dc0c) #7 0x51bc91 (/out/package/test_com+0x51bc91) #8 0x51c1cd (/out/package/test_com+0x51c1cd) #9 0x52c9ee (/out/package/test_com+0x52c9ee) #10 0x7f7876b97b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) SUM
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
37, 22,15, 14,8,8,o, 7, ,4,r,4,4,-,-, 4,t,-,-,2,s,-,-,2,2,2,e,-,-,-,-, 2,a,-,-,-,-,-,-,y,u,-,-,-,-,-,-,p,j,i,h,f,d,-,-,-,-,-,-,-,-,-,-, c,\n,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,
JOJ Answer
37, 22,15, 14,8,8,o, 7, ,4,r,4,4,-,-, 4,t,-,-,2,s,-,-,2,2,2,e,-,-,-,-, 2,a,-,-,-,-,-,-,y,u,-,-,-,-,-,-,p,j,i,h,f,d,-,-,-,-,-,-,-,-,-,-, c,\n,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,