Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

/in/exam3_matrix.cpp:11:21: runtime error: store to misaligned address 0x0001e1286243 for type 'int', which requires 4 byte alignment
0x0001e1286243: note: pointer points here
<memory cannot be printed>
ASAN:DEADLYSIGNAL
=================================================================
==31686==ERROR: AddressSanitizer: SEGV on unknown address 0x0000bc248c48 (pc 0x561d39e2fa55 bp 0x7ffc39be37f0 sp 0x7ffc39be37c0 T0)
==31686==The signal is caused by a READ memory access.
    #0 0x561d39e2fa54 in intMatrix::intMatrix(int, int, int) (/out/package/ex3+0x16a54)
    #1 0x561d39e292cc in main (/out/package/ex3+0x102cc)
    #2 0x7f65dec2eb96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #3 0x561d39e27ec9 in _start (/out/package/ex3+0xeec9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/out/package/ex3+0x16a54) in intMatrix::intMatrix(int, int, int)
==31686==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