QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#144133 | #141. 8 染色 | ty_ak | Compile Error | / | / | C++14 | 846b | 2023-08-21 15:40:55 | 2023-08-21 15:41:00 |
Judging History
Alice
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
namespace {
const int N = 200005;
vector<int> X;
int d[N];
}
std::vector <int> Alice(int N, int M, std::vector <int> U, std::vector <int> V, std::vector <int> C) {
for (int i = 0; i < M; i++) d[U[i]]++, d[V[i]]++;
for (int i = 0; i < N; i++) if (d[i] >= 8) X.push_back((C[i] % 4) & 1), X.push_back((bool)((C[i] % 4) & 2));
return X;
}
Bob
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
namespace {
const int N = 200005;
vector<int> X;
int d[N];
}
std::vector <int> Alice(int N, int M, std::vector <int> U, std::vector <int> V, std::vector <int> C) {
for (int i = 0; i < M; i++) d[U[i]]++, d[V[i]]++;
for (int i = 0; i < N; i++) if (d[i] >= 8) X.push_back((C[i] % 4) & 1), X.push_back((bool)((C[i] % 4) & 2));
return X;
}
Details
/usr/bin/ld: /tmp/ccBZZnPO.o: in function `main': grader_Bob.cpp:(.text.startup+0x267): undefined reference to `Bob(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)' collect2: error: ld returned 1 exit status