Record Case Detail

Notes

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

Stderr

/in/dictionary.c:152:32: runtime error: member access within null pointer of type 'struct dictionary_node_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:152:32 in 
/in/dictionary.c:138:32: runtime error: member access within null pointer of type 'struct dictionary_node_t'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:138:32 in 

Your 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

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