제출 #1015092

#제출 시각아이디문제언어결과실행 시간메모리
1015092vjudge1Gap (APIO16_gap)C++17
컴파일 에러
0 ms0 KiB
#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;
}

컴파일 시 표준 에러 (stderr) 메시지

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);
      |   ^~~~~~