Submission #1006515

#TimeUsernameProblemLanguageResultExecution timeMemory
1006515christinelynnGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define endl "\n" vector < int > freq; void initialize ( int n ){ freq.resize(n); } bool hasEdge ( int u, int v ){ freq[u]++; freq[v]++; if ( max ( freq[u], freq[v]) == (int)freq.size() - 1 ) return true; else return false; }

Compilation message (stderr)

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