[i + 2][j + 1] + arr[i + 2][j + 2]; res = max(sum, res); } } return res; } int main() { vector<vector<int>> arr(6, vector<int>(6)); for (auto& r : arr) { for (auto& c : r) { cin >> c; } } auto res = solution(arr); cout << res << endl; ...