Notes
This function is in beta test. Please help improve it in the issues
here.
LeakSanitizer:DEADLYSIGNAL ==33573==ERROR: LeakSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55b57c875502 bp 0x6020000001a0 sp 0x7ffdf4fceb88 T0) ==33573==The signal is caused by a READ memory access. ==33573==Hint: address points to the zero page. #0 0x55b57c875501 in Node::equal(Node*) (/out/package/lab8+0x1501) #1 0x55b57c875546 in Node::equal(Node*) [clone .part.2] (/out/package/lab8+0x1546) #2 0x55b57c875546 in Node::equal(Node*) [clone .part.2] (/out/package/lab8+0x1546) #3 0x55b57c875734 in Node::contain(Node*) (/out/package/lab8+0x1734) #4 0x55b57c87571d in Node::contain(Node*) (/out/package/lab8+0x171d) #5 0x55b57c87758d in choice9() (/out/package/lab8+0x358d) #6 0x55b57c87529a in main (/out/package/lab8+0x129a) #7 0x7fa257f01b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #8 0x55b57c8753f9 in _start (/out/package/lab8+0x13f9) LeakSanitizer can not provide additional info. SUMMARY: LeakSanitizer: SEGV (/out/package/lab8+0x1501) in Node
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 23, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
1
JOJ Answer
1 0 1