#include #include #include #include typedef struct matrix { int row; int col; } matrix; typedef struct minCost { int cost; int mid; } minCost; minCost** func(matrix* mt, ssize_t count) { int i, j, step, min, temp, mid; minCost **rows; rows = (minCost **)