#include #include // Data matrice V di NxM, array A e numero w *max_element_of_A) counts++; if(counts == w) return true; } } return false; } int main() { int V[N][M] = { {3, 59, 5, 54}, {5, 3, 1, 5}, {8, 7, 4, 5}, {4, 7, 4, 5}, }; int A[k] = {4, 50, 2}; std::cout << row_alg(V, A, w) << std::endl; return 0; }