Submission #926884

# Submission time Handle Problem Language Result Execution time Memory
926884 2024-02-14T03:48:20 Z Nurislam Game (IOI14_game) C++17
Compilation error
0 ms 0 KB
//~ #include "game.h"
#include <bits/stdc++.h>
//~ #include "grader.cpp"


using namespace std;

#define pb push_back
#define ff first
#define ss second
#define int long long
///*                                                    __                    __                        __                    */
///*        ======     _      /| /|  __   _            /   |  |   /|  |   @  |    |  |  | /   /| |\  | /   |  |  @ | /        */
///* \-       ||  |_| |_     / |/ | |  | |_  |-        |   |--|  /-|  |   |  \ \  |==|  |-   /=| | \ | |   |--|  | |-         */
///*          ||  | | |_    /     | |__|  _| |_        \__ |  | /  |  |__ |  __|  |  |  | \ /  | |  \| \__ |  |  | | \        */
///* 

typedef vector<int> vi;
typedef pair<int,int> pii;
typedef vector<pii> vii;
const int N = 1600;
set<int> g[N];
void initialize(int n) {
	for(int i = 0; i < n; i++){
		for(int j = i+1; j < n; j++){
			g[i].insert(j);
			g[j].insert(i);
		}
	}
}

int hasEdge(int u, int v) {
	if(g[u].size() == 1)return 1;
	g[u].erase(v);
	g[v].erase(u);
	return 0;
}

Compilation message

/usr/bin/ld: /tmp/ccpQyboy.o: in function `main':
grader.cpp:(.text.startup+0x2a): undefined reference to `initialize(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status