제출 #1076434

#제출 시각아이디문제언어결과실행 시간메모리
1076434IcelastGap (APIO16_gap)C++17
컴파일 에러
0 ms0 KiB
#include "gap.h" #include <iostream> #include <bits/stdc++.h> #define ll long long using namespace std; const ll maxn = 2*1e5+5, INF = 4e18+9; long long findGap(int T, int n) { ll ans = 0; if(T == 1){ ll l = 0, r = INF; ll mn, mx; vector<ll> a(n+1); for(int i = 1; i <= (n+1)/2; i++){ MaxMin(l, r, &mn, &mx); a[i] = mn; a[n-i+1] = mx; l = mn+1, r = mx-1; } for(int i = 2; i <= n; i++){ ans = max(ans, a[i]-a[i-1]); } }else{ return 0; } return ans; }

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

gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:16:13: error: 'MaxMin' was not declared in this scope
   16 |             MaxMin(l, r, &mn, &mx);
      |             ^~~~~~