Submission #1006443

#TimeUsernameProblemLanguageResultExecution timeMemory
1006443christinelynnGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MAXN = 2e3 + 5; ll m; ll a [MAXN]; void initialize(ll n){ m = n; } bool hasEdge(ll u, ll v){ a[u]++, a[v]++; if(a[u] == m-1 || a[v] == m-1) return 1; return 0; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccXr67rm.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