Submission #924513

#TimeUsernameProblemLanguageResultExecution timeMemory
924513tosivanmakGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; #define ll long long #ifdef __cplusplus extern "C" { #endif void initialize(int n); int hasEdge(int u, int v); #ifdef __cplusplus } #endif // TODO: global variables can be declared here ll cnt[1505]; ll cancut,outn; ll cutedges=0; void initialize(int n) { // TODO: implementation for(int i=0;i<1500;i++){ cnt[i]=0; } cancut=n*(n-1)/2-(n-1); outn=n; } int hasEdge(int u, int v) { // TODO: implementation cnt[u]++,cnt[v]++; if(cutedges>=cancut){ return 1; } if(cnt[u]==outn or cnt[v]==outn){ return 1; } return 0; }

Compilation message (stderr)

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