QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#32949 | #141. 8 染色 | _Qingyu | Compile Error | / | / | C++20 | 739b | 2022-05-25 23:51:36 | 2023-01-15 14:36:34 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-01-15 14:36:34]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-05-25 23:51:36]
- 提交
Alice
#include "Alice.h"
namespace {
int sample_variable = 0;
void sample_function() {
}
}
std::vector <int> Alice(int N, int M, std::vector <int> U, std::vector <int> V, std::vector <int> C) {
std::vector<int> ret(3 * N);
for (int i = 0; i < N; ++i) {
ret[3 * i] = (C[i] >> 0) & 1;
ret[3 * i + 1] = (C[i] >> 1) & 1;
ret[3 * i + 2] = (C[i] >> 2) & 1;
}
return ret;
}
Bob
#include "Alice.h"
namespace {
int sample_variable = 0;
void sample_function() {
}
}
std::vector <int> Bob(int N, int M, std::vector <int> U, std::vector <int> V, std::vector <int> X) {
std::vector<int> ret(N);
for (int i = 0; i < N; ++i)
ret[i] = (C[3 * i]) | (C[3 * i + 1] << 1) | (C[3 * i + 2] << 2);
return ret;
}
详细
Bob.code: In function ‘std::vector<int> Bob(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’: Bob.code:13:27: error: ‘C’ was not declared in this scope 13 | ret[i] = (C[3 * i]) | (C[3 * i + 1] << 1) | (C[3 * i + 2] << 2); | ^