diff --git a/P2/distributedmatrix.cpp b/P2/distributedmatrix.cpp
index 4df69bd65c7e30cf883ef744813189984ba0b9bd..4e7ba44d5f6e9e8a2f5eb09bbbe88e0e0dfbb87b 100644
--- a/P2/distributedmatrix.cpp
+++ b/P2/distributedmatrix.cpp
@@ -218,7 +218,7 @@ Matrix DistributedMatrix::multiplyTransposed(const DistributedMatrix &other) con
     double *resultData = (double*) malloc(globalRows * other.globalRows * sizeof(double));
 
     // Effectuer la réduction
-    MPI_Allreduce(local.getData(), resultData, globalRows * other.globalRows, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
+    MPI_Allreduce(local.getData().data(), resultData, globalRows * other.globalRows, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
 
     // Affichage de resultData avant de le libérer
     if (rank == 0) { // Print seulement sur le processus 0