diff --git a/src/classes/disjoint_set/disjoint_set.h b/src/classes/disjoint_set/disjoint_set.h index a5c4d2ed..cdd7d524 100644 --- a/src/classes/disjoint_set/disjoint_set.h +++ b/src/classes/disjoint_set/disjoint_set.h @@ -3,6 +3,7 @@ #ifdef __cplusplus #include +#include #endif /** diff --git a/src/classes/heap/min_heap.h b/src/classes/heap/min_heap.h index c697f6f6..0e85c59f 100644 --- a/src/classes/heap/min_heap.h +++ b/src/classes/heap/min_heap.h @@ -3,6 +3,7 @@ #ifdef __cplusplus #include #include +#include #include #endif diff --git a/src/classes/tree/tree.h b/src/classes/tree/tree.h index ba4231a2..cc3d31ec 100644 --- a/src/classes/tree/tree.h +++ b/src/classes/tree/tree.h @@ -6,6 +6,7 @@ #include #include #include +#include #endif /** diff --git a/src/machine_learning/image/edge_detection/prewitt.h b/src/machine_learning/image/edge_detection/prewitt.h index 326946a0..db5cf921 100644 --- a/src/machine_learning/image/edge_detection/prewitt.h +++ b/src/machine_learning/image/edge_detection/prewitt.h @@ -4,6 +4,7 @@ #ifdef __cplusplus #include #include +#include #include "../image.h" #endif diff --git a/src/machine_learning/image/filters/median_filter.h b/src/machine_learning/image/filters/median_filter.h index 09328100..559273e0 100644 --- a/src/machine_learning/image/filters/median_filter.h +++ b/src/machine_learning/image/filters/median_filter.h @@ -4,6 +4,7 @@ #ifdef __cplusplus #include #include +#include #include "../image.h" #endif diff --git a/src/machine_learning/regression/linear_regression/lin_reg.h b/src/machine_learning/regression/linear_regression/lin_reg.h index 47cc4d82..ef05056e 100644 --- a/src/machine_learning/regression/linear_regression/lin_reg.h +++ b/src/machine_learning/regression/linear_regression/lin_reg.h @@ -5,6 +5,7 @@ #ifdef __cplusplus #include #include +#include #endif diff --git a/src/machine_learning/regression/polynomial_regression/poly_reg.h b/src/machine_learning/regression/polynomial_regression/poly_reg.h index 9264e6b0..fc897309 100644 --- a/src/machine_learning/regression/polynomial_regression/poly_reg.h +++ b/src/machine_learning/regression/polynomial_regression/poly_reg.h @@ -58,7 +58,7 @@ class polynomial_regression{ int64_t maxRow = i; for (int64_t k = i + 1; k < n; ++k) { - if (abs(A[k][i]) > abs(A[maxRow][i])) { + if (std::abs(A[k][i]) > std::abs(A[maxRow][i])) { maxRow = k; } } diff --git a/src/machine_learning/search_algorithms/AStar/astar.h b/src/machine_learning/search_algorithms/AStar/astar.h index 15472299..8d91e402 100644 --- a/src/machine_learning/search_algorithms/AStar/astar.h +++ b/src/machine_learning/search_algorithms/AStar/astar.h @@ -9,6 +9,7 @@ #include #include #include +#include #endif diff --git a/src/machine_learning/search_algorithms/hill_climbing/hill_climbing.h b/src/machine_learning/search_algorithms/hill_climbing/hill_climbing.h index 32bf59bc..f890acf8 100644 --- a/src/machine_learning/search_algorithms/hill_climbing/hill_climbing.h +++ b/src/machine_learning/search_algorithms/hill_climbing/hill_climbing.h @@ -6,6 +6,7 @@ #include #include #include +#include #endif /**