diff --git a/src/BestFirst.cpp b/src/BestFirst.cpp index 41ed25b..ae23356 100644 --- a/src/BestFirst.cpp +++ b/src/BestFirst.cpp @@ -70,7 +70,7 @@ BestFirst::BestFirst(const Matrix &f, const Matrix &l, // Step 6 int childNum = eList.size(); - double resultList[childNum] { 0.0 }; + std::vector resultList(childNum, 0.0); #pragma omp parallel for schedule(static) num_threads(threadNum) for (int i = 0; i < childNum; i++) { Node child = eList[i];