제출 #95628

#제출 시각아이디문제언어결과실행 시간메모리
95628shenxyGap (APIO16_gap)C++11
컴파일 에러
0 ms0 KiB
#include <cstdio> #include <algorithm> using namespace std; long long findGap(int T, int N){ long long int m, n; MinMax(1, 1000000000000000000LL, &m, &n); long long int ans = 0; long long int a, b; for (int i = 0; i < (N - 1) / 2; i++) { a = m, b = n; MinMax(a + 1, b - 1, &m, &n); ans = max(ans, max(m - a, b - n)); } ans = max(ans, n - m); return ans; }

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

gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:6:5: error: 'MinMax' was not declared in this scope
     MinMax(1, 1000000000000000000LL, &m, &n);
     ^~~~~~