QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#687587#9226. Game of GeniusesMomo_lightCompile Error//C++17554b2024-10-29 19:52:402024-10-29 19:52:40

Judging History

你现在查看的是最新测评结果

  • [2024-10-29 19:52:40]
  • 评测
  • [2024-10-29 19:52:40]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

using i32 = int32_t;
using i64 = long long;
using ldb = long double;

const i32 inf = INT_MAX / 2;
const i64 INF = LLONG_MAX / 2;

#define int i64

using vi = vector<int>;

i32 main() {
    ios::sync_with_stdio(false), cin.tie(nullptr);
    int n;
    cin >> n;
    vector a(n, vi(n));
    for (auto &ai: a)
        for (auto &aij: ai)
            cin >> aij;
    int res = -inf;
    for(auto ai : a)
        res = max(res, ranges::min(ai));
    cout << res;
    return 0;
}


Details

answer.code: In function ‘i32 main()’:
answer.code:26:24: error: ‘ranges’ has not been declared
   26 |         res = max(res, ranges::min(ai));
      |                        ^~~~~~