Notes
This function is in beta test. Please help improve it in the issues
here.
/in/exam3_matrix.cpp:16:26: runtime error: store to misaligned address 0x7f78c0bbcf13 for type 'int', which requires 4 byte alignment 0x7f78c0bbcf13: note: pointer points here ed b1 ff ff 49 89 c0 64 8b 04 25 18 00 00 00 85 c0 59 5e 75 3c 48 8b 74 24 08 31 c0 48 85 f6 74 ^ ASAN:DEADLYSIGNAL ================================================================= ==34854==ERROR: AddressSanitizer: SEGV on unknown address 0x7f78c0bbcf13 (pc 0x55b390b49ccb bp 0x7ffde36d9a30 sp 0x7ffde36d99f0 T0) ==34854==The signal is caused by a WRITE memory access. #0 0x55b390b49cca in intMatrix::intMatrix(int, int, int) (/out/package/ex3+0x16cca) #1 0x55b390b436ca in main (/out/package/ex3+0x106ca) #2 0x7f78be560b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96) #3 0x55b390b42019 in _start (/out/package/ex3+0xf019) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV (/out/package/ex3+0x16cca) in intMatrix::intMatrix(int, int, int) ==34854==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 3: 4pts
JOJ Answer
Testing constructor & destructor 3: 4pts Matrix Information: rows: 10 cols: 1