Submission #742617

#TimeUsernameProblemLanguageResultExecution timeMemory
742617AndrijaMGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include "gap.h" #include <bits/stdc++.h> using namespace std; long long findGap(long long T, long long N) { long long l=0; long long r=1e18; long long mn,mx; long long ans=0; long long a=0,b=0; MinMax(l,r,&mn,&mx); a=mn; l=mn+1; b=mx; r=mx-1; while(l<r) { MinMax(l,r,&mn,&mx); ans=max(ans, abs(a-mn)); ans=max(ans, abs(b-mx)); a=mn; l=mn+1; b=mx; r=mx-1; } ans=max(ans, abs(a-b)); return ans; }

Compilation message (stderr)

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