Submission #560759

#TimeUsernameProblemLanguageResultExecution timeMemory
560759messiuuuuuGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define task "B" #define ll long long #define ld long double #define fi first #define se second #define pb push_back using namespace std; const int MAXN = 1e5 + 5; const ll INF = 1e18 + 5; int n; void Input() { cin >> n; } ll ans = INF; void Dnc(ll l, ll r) { ll mn, mx; MinMax(l, r, &mn, &mx); ll mid = (l + r) / 2; if (mn == -1) { return; } ans = min(ans, mx - mn); Dnc(l, mid); Dnc(mid + 1, r); } void findGap(int t, int n) { ans = INF; Dnc(1, 1e18); } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); //freopen(taskname".INP" , "r" , stdin); //freopen(taskname".OUT" , "w" , stdout); }

Compilation message (stderr)

gap.cpp: In function 'void Dnc(long long int, long long int)':
gap.cpp:24:5: error: 'MinMax' was not declared in this scope
   24 |     MinMax(l, r, &mn, &mx);
      |     ^~~~~~