제출 #1343662

#제출 시각아이디문제언어결과실행 시간메모리
1343662NewtonabcGap (APIO16_gap)C11
컴파일 에러
0 ms0 KiB
#include "gap.h"
#include<bits/stdc++.h>
#define ll long long
using namespace std;
long long findGap(int T, int N)
{	
	if(T==2){
		vector<pair<ll,ll>> v;
		long long n=N;
		ll mn,mx;
		ll tmp=1e18;
		MinMax(1LL,tmp,&mn,&mx);
		ll l=mn,r=mx;
		long long rng=r-l+1;
		long long sz=(rng+n-1LL)/n;
		for(ll i=l;i<=r+sz-1;i+=sz){
			ll lb=i-sz+1;
			ll sec=i/sz;
			//cout<<lb <<" " <<i <<"\n";
			MinMax(lb,i,&mn,&mx);
			if(mn!=-1) v.push_back({mn,mx});
		}
		ll ans=LLONG_MIN;
		for(int i=0;i<(int)(v.size())-1;i++){
			ans=max(ans,v[i+1].first-v[i].second);
		}
		return ans;
	}
	return 0;
}

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

gap.c:2:9: fatal error: bits/stdc++.h: No such file or directory
    2 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.