Notes
This function is in beta test. Please help improve it in the issues
here.
/in/dictionary.c:33:18: runtime error: member access within misaligned address 0xbebebebebebebebe for type 'struct node', which requires 8 byte alignment 0xbebebebebebebebe: note: pointer points here <memory cannot be printed> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:33:18 in /in/dictionary.c:33:18: runtime error: load of misaligned address 0xbebebebebebebece for type 'int', which requires 8 byte alignment 0xbebebebebebebece: note: pointer points here <memory cannot be printed> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /in/dictionary.c:33:18 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==50420==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000515422 bp 0x7fffe2aff770 sp 0x7fffe2aff750 T0) ==50420==The signal is caused by a READ memory access. ==50420==Hint: address points to the zero page. #0 0x515421 (/out/package/dictionary+0x515421) #1 0x515042 (/out/package/dictionary+
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: {}. Reversed: {}. ****Print Finished**** 1 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 2 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 3 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 4 The value is 19. ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 5 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 6 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 7 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 8 ***Print Dictionary*** Original: {24:19, }. Reversed: {24:19, }. ****Print Finished**** 9 ***Print Dictionary*** Original: {20:26, 24:19, }. Reversed: {24:19, 20:26, }. ****Print Finished**** 10 ***Print Dictionary*** Original: {20:26, 24:19, 26:5, }. Reversed: {26:5, 24:19, 20:26, }. ****Print Fin