知识点:

复合类型:

二维数组。

#include <iostream>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    int arr[n][m];
    int max = 0;
    int x, y;

    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            cin >> arr[i][j];
            if (max < arr[i][j]) {
                max = arr[i][j];
                x = i;
                y = j;
            }
        }
    }

    cout << x + 1 << " " << y + 1;

    return 0;
}