답안 #187181

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
187181 2020-01-12T13:28:06 Z rzbt Gap (APIO16_gap) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define all(x) x.begin(),x.end()
#define MAXN 100005
#include "gap.h"
typedef long long ll;


using namespace std;

ll findGap(ll t,ll n){
    ll res=0;
    ll l,d,tl,td;
    MinMax(0ll,1000000000000000000ll,&l,&d);
    while(l<d){
        MinMax(l+1,d-1,&tl,&td);
        res=max(res,max(tl-l,d-td));
        l=tl;
        d=td;
    }
    return res;

}

Compilation message

/tmp/ccnT5ukg.o: In function `main':
grader.cpp:(.text.startup+0x18e): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status