Submission #89999

#TimeUsernameProblemLanguageResultExecution timeMemory
89999nikolapesic2802The Big Prize (IOI17_prize)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "prize.h" using namespace std; int doit(int l,int r) { int m=(l+r)>>1; vector<int> tr=ask(m); if(tr[0]+tr[1]==0) return m; if(l==r) return -1; if(tr[0]>tr[1]) { int tr=doit(l,m-1); if(tr!=-1) return tr; return doit(m+1,r); } else { int tr=doit(m+1,r); if(tr!=-1) return tr; return doit(l,m-1); } }

Compilation message (stderr)

/tmp/ccOhBasD.o: In function `main':
grader.cpp:(.text.startup+0x98): undefined reference to `find_best(int)'
collect2: error: ld returned 1 exit status