Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==31133==ERROR: AddressSanitizer: SEGV on unknown address 0x7f61003836d9 (pc 0x7f617fbecf52 bp 0x7ffe2fcc9120 sp 0x7ffe2fcc8d20 T0) ==31133==The signal is caused by a WRITE memory access. #0 0x7f617fbecf51 (/lib64/ld-linux-x86-64.so.2+0xff51) #1 0x7f617fbf4759 (/lib64/ld-linux-x86-64.so.2+0x17759) #2 0x55b73b6b9362 in print_info(intMatrix&) (/out/package/ex3+0xf362) #3 0x55b73b6ba4fb in main (/out/package/ex3+0x104fb) #4 0x7f617d590b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x55b73b6b90e9 in _start (/out/package/ex3+0xf0e9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/lib64/ld-linux-x86-64.so.2+0xff51) ==31133==ABORTING
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
Testing constructor & destructor 1: 4pts
JOJ Answer
Testing constructor & destructor 1: 4pts Matrix Information: rows: 1 cols: 1