Notes
This function is in beta test. Please help improve it in the issues
here.
50 str 0 empty 1 empty 2 empty 3 append TrlyPnG HYg 4 append zjGWmsfKQB1Tb7y VgY 5 append N01jz6vTpnB YGo 6 append oK4e2LCvji5sGrp l3CJj 7 append 3zOdM oYrc 8 append DdI8RLmxv O12f 9 empty 10 append J3Nr4C Beg 11 append mnQaKP lBVH5 12 append RS0mE h9S 13 sort inc 14 append gzdVxy jrmsc 15 append t4cjzXwDgSM gXuVF 16 append EpGSej9Nmrzs7Y 3Zp5y 17 append 8fsq2Uhlpv7 jTHxw 18 print 19 append oXUPi2yIr0DH4 b8kqO 20 append 8woXjJNY3zTxnk 35i1 21 append 1B0cSTgs TUyt0 22 append 0VNOhm2e HzQB 23 sort dec ================================================================= ==286==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6020000006b0 at pc 0x000000515c03 bp 0x7ffe59810780 sp 0x7ffe59810778 READ of size 8 at 0x6020000006b0 thread T0 #0 0x515c02 (/out/package/main+0x515c02) #1 0x5178f4 (/out/package/main+0x5178f4) #2 0x519d72 (/out/package/main+0x519d72) #3 0x51537d (/out/package/main+0x51537d) #4 0x7f21326a1b96 (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x41cac9 (/out/pa
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
0 true 1 true 2 true 3 4 5 6 7 8 9 false 10 11 12 13 TrlyPnG=HYg zjGWmsfKQB1Tb7y=VgY N01jz6vTpnB=YGo oK4e2LCvji5sGrp=l3CJj 3zOdM=oYrc DdI8RLmxv=O12f J3Nr4C=Beg mnQaKP=lBVH5 RS0mE=h9S J3Nr4C=Beg TrlyPnG=HYg 14 15 16 17 18 TrlyPnG=HYg zjGWmsfKQB1Tb7y=VgY N01jz6vTpnB=YGo oK4e2LCvji5sGrp=l3CJj 3zOdM=oYrc DdI8RLmxv=O12f J3Nr4C=Beg mnQaK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