제출 #249293

#제출 시각아이디문제언어결과실행 시간메모리
249293sahil_kGap (APIO16_gap)C++14
컴파일 에러
0 ms0 KiB
#include "grader.h"
using namespace std;
long long flipgap (int t, int n) {
	if (t == 1) {
		long long mn, mx;
		long long p_mn = 0, p_mx = 1e18;
		long long ans = 1e18;
		for (int i=0; i<(n+1)/2; i++) {
			MinMax(p_mn+1, p_mx-1, mn, mx);
			if (mn > -1) ans = min(ans, mn-p_mn);
			if (mx > -1) ans = min(ans, p_mx-mx);
			p_mn = mn;
			p_mx = mx;
		}
		return ans;
	} else {
		return 0;
	}
}

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

gap.cpp:1:10: fatal error: grader.h: No such file or directory
 #include "grader.h"
          ^~~~~~~~~~
compilation terminated.