Notes
This function is in beta test. Please help improve it in the issues
here.
ASAN:DEADLYSIGNAL ================================================================= ==31390==ERROR: AddressSanitizer: SEGV on unknown address 0x7f44003836d9 (pc 0x7f44980cff52 bp 0x7ffe1e7f0160 sp 0x7ffe1e7efd60 T0) ==31390==The signal is caused by a WRITE memory access. #0 0x7f44980cff51 (/lib64/ld-linux-x86-64.so.2+0xff51) #1 0x7f44980d7759 (/lib64/ld-linux-x86-64.so.2+0x17759) #2 0x55c083e375e2 in print_info(intMatrix&) (/out/package/ex3+0xf5e2) #3 0x55c083e3877b in main (/out/package/ex3+0x1077b) #4 0x7f4495a73b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #5 0x55c083e37369 in _start (/out/package/ex3+0xf369) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/lib64/ld-linux-x86-64.so.2+0xff51) ==31390==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