QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#687587 | #9226. Game of Geniuses | Momo_light | Compile Error | / | / | C++17 | 554b | 2024-10-29 19:52:40 | 2024-10-29 19:52:40 |
Judging History
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)); | ^~~~~~