Submission #467651

#TimeUsernameProblemLanguageResultExecution timeMemory
467651SirCovidThe19thGap (APIO16_gap)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" using namespace std; #define ll long long ll findGap(ll t, ll n){ ll mn, mx, lim, lb, ans = 0; MinMax(1, 1e18, &mn, &mx); lb = (mx - mn) / (n - 1); lim = mx; for (ll l = mn, r = mn + lb - 1, prvMx = 1e18; l < lim; l += lb, r += lb){ MinMax(l, r, &mn, &mx); ans = max(ans, mn - prvMx); if (~mx) prvMx = mx; } return ans; }

Compilation message (stderr)

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