diff --git a/HW10/main.cpp b/HW10/main.cpp index 2493f58..68d7405 100644 --- a/HW10/main.cpp +++ b/HW10/main.cpp @@ -47,7 +47,7 @@ int main(int argc, char* argv[]) std::cout << "HERE RANK 1" << std::endl; } MPI_Bcast(&flatMatrix[0], flatMatrix.size(), MPI_DOUBLE, 0, MPI_COMM_WORLD); - MPI_Bcast(&serializedCity[0], serializedCity.size(), MPI_INT, 0, MPI_COMM_WORLD); + MPI_Bcast(serializedCity.data(), serializedCity.size(), MPI_INT, 0, MPI_COMM_WORLD); std::cout << "Rank: " << rank << " IM HERE 2" << std::endl; std::vector costs;