QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#144133#141. 8 染色ty_akCompile Error//C++14846b2023-08-21 15:40:552023-08-21 15:41:00

Judging History

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

  • [2023-08-21 15:41:00]
  • 评测
  • [2023-08-21 15:40:55]
  • 提交

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