Submission #431887

#TimeUsernameProblemLanguageResultExecution timeMemory
431887REALITYNBGame (IOI14_game)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "game.h" using namespace std; vector<vector<int>> lft; vector<int> cnt ; void initialize(int n){ lft.resize(n,vector<int>(n,-1)) ; cnt.resize(n) ; for(int i=0;i<n;i++) cnt[i]=n-1-i ; return ; } int hasedge(int a , int b){ if(a>b) swap(a,b); if(lft[a][b]!=-1){ return lft[a][b]; } cnt[a]--; if(cnt[a]){ lft[a][b]=0 ; return lft[a][b]; } lft[a][b]=1; return 1 ; }

Compilation message (stderr)

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