QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#553416 | #9241. Sphinx | dalao_see_me# | Compile Error | / | / | C++14 | 600b | 2024-09-08 12:59:02 | 2024-09-08 12:59:03 |
Judging History
This is the latest submission verdict.
- [2024-09-08 12:59:03]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-09-08 12:59:02]
- Submitted
answer
#include "sphinx.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 255;
int n, m;
vector <int> e[N], tmp;
vector <int> find_colours(int N, vector <int> X, vector <int> Y) {
n = N; m = X.size(); vector <int> C(n);
for (int i = 0; i < m; i++) {
e[X[i]].push_back(Y[i]);
e[Y[i]].push_back(X[i]);
}
for (int i = 0; i < n; i++) tmp.push_back(-1);
int all = perform_experiment(tmp);
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++) {
tmp[i] = j;
int p = perform_experiment(tmp);
if (p == all) {
C[i] = j;
break;
}
}
return C;
}
詳細信息
implementer.cpp: In function ‘int {anonymous}::sz(const C&)’: implementer.cpp:26:52: error: ‘size’ is not a member of ‘std’; did you mean ‘size_t’? 26 | template<class C> int sz(const C& c) { return std::size(c); } | ^~~~ | size_t