Submission #1015092

# Submission time Handle Problem Language Result Execution time Memory
1015092 2024-07-06T05:17:29 Z vjudge1 Gap (APIO16_gap) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

using namespace std;

#define int long long

int findGap(int t,int n)
{
	int a[n],i=0,j=n-1,mn,mx,lim1=0,lim2=1e18;
	while (i<=j)
	{
		MinMax(lim1,lim2,mn,mx);
		a[i++]=mn;
		a[j--]=mx;
	}
	int ans=0;
	for (int i=0;i<n-1;i++)
		ans=max(ans,a[i+1]-a[i]);
	
	return ans;
}

Compilation message

gap.cpp: In function 'long long int findGap(long long int, long long int)':
gap.cpp:12:3: error: 'MinMax' was not declared in this scope
   12 |   MinMax(lim1,lim2,mn,mx);
      |   ^~~~~~