Project

General

Profile

Actions

Bug #3592

open

Defect ID: DF010

Bug #3592: Defect ID: DF010

Added by Ha Long Ha about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Start date:
10/02/2025
Due date:
% Done:

0%

Estimated time:

Description

Defect ID: DF010

Defect Name: Wrong result matrix dimensions

Line Number: 7

Defect Description: The result matrix is initialized with incorrect dimensions (e.g., new int[p][p]) instead of new int[m][p], leading to incorrect shape and runtime index errors.

Fixing Solution: Allocate the result matrix as int[][] C = new int[m][p]; where m = A.length and p = B[0].length.

No data to display

Actions

Also available in: PDF Atom