Submission #678580

#TimeUsernameProblemLanguageResultExecution timeMemory
678580penguin133Game (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "game.h"
using namespace std;

//#define int long long
#define pi pair<int, int>
#define pii pair<int, pi>
#define fi first
#define se second
#ifdef _WIN32
#define getchar_unlocked _getchar_nolock
#endif

int N;
void initialise(int n){
	N = n;
}
int cnt = 0;
int hasEdge(int u, int v){
	if(max(u, v) == 1)return 1;
	else if(min(u, v) == 2)return 1;
	cnt++;
	if(cnt < N * (N - 1) / 2 - 2)return 0;
	else return 1;
}

Compilation message (stderr)

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