Submission #1036913

#TimeUsernameProblemLanguageResultExecution timeMemory
1036913vaneaGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; using ll = long long; const int mxN = 2e3+10; int cnt[mxN], N; int hadEdge(int u, int v) { ++cnt[u]; ++cnt[v]; if(cnt[u] == N-1 || cnt[v] == N-1) return 1; return 0; } void initialize(int n) { N = n; } int main() { }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccK6RWRy.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccvUQlzz.o:game.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccK6RWRy.o: in function `main':
grader.cpp:(.text.startup+0x94): undefined reference to `hasEdge(int, int)'
collect2: error: ld returned 1 exit status