Răspuns:
#include<iostream>
using namespace std;
int main() {
int n, m, i, j, k, a[100][100], min;
cin >> n >> m >> k;
if (k > n)
return -1;
for (i = 0; i < n; i++)
for (j = 0; j < m; j++)
cin >> a[i][j];
j = 0;
min = a[k-1][j];
for (j = 1; j < m; j++)
if (a[k-1][j] < min)
min = a[k-1][j];
cout << min;
}