Record Case Detail

Notes

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

Stderr

=================================================================
==15990==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 120 byte(s) in 5 object(s) allocated from:
    #0 0x4dc810  (/out/package/dictionary+0x4dc810)
    #1 0x515553  (/out/package/dictionary+0x515553)
    #2 0x5150dc  (/out/package/dictionary+0x5150dc)
    #3 0x7f1d439afb96  (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: 120 byte(s) leaked in 5 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


        

JOJ Answer

0
***Print Dictionary***
Original: {5:4, }.
Reversed: {5:4, }.
****Print Finished****
1
***Print Dictionary***
Original: {5:9, }.
Reversed: {5:9, }.
****Print Finished****
2
The value is 9.
***Print Dictionary***
Original: {5:9, }.
Reversed: {5:9, }.
****Print Finished****
3
***Print Dictionary***
Original: {5:9, }.
Reversed: {5:9, }.
****Print Finished****
4
***Print Dictionary***
Original: {4:8, 5:9, }.
Reversed: {5:9, 4:8, }.
****Print Finished****
5
***Print Dictionary***
Original: {4:8, 5:9, 8:1, }.
Reversed: {8:1, 5:9, 4:8, }.
****Print Finished****
6
***Print Dictionary***
Original: {4:8, 5:9, 7:0, 8:1, }.
Reversed: {8:1, 7:0, 5:9, 4:8, }.
****Print Finished****
7
***Print Dictionary***
Original: {2:2, 4:8, 5:9, 7:0, 8:1, }.
Reversed: {8:1, 7:0, 5:9, 4:8, 2:2, }.
****Print Finished****
8
***Print Dictionary***
Original: {1:7, 2:2, 4:8, 5:9, 7:0, 8:1, }.
Reversed: {8:1, 7:0, 5:9, 4:8, 2:2, 1:7, }.
****Print Finished****
9
***Print Dictionary***
Original: {1:7, 2:2, 4:10, 5:9, 7:0, 8:1, }.
Reversed: {8:1