Мой код:
Код: Выделить всё
#include
using namespace std;
int main() {
int n, m, h;
int arr[100][100];
cin >> n >> m;
const int q = m;
int ar[q];
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
cin >> arr[i][j];
}
}
for (int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/78386546/finding-row-with-minimum-sum-in-matrix-outputs-first-row-instead-of-correct-one[/url]
Мобильная версия