# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1100302 |
2024-10-13T13:15:36 Z |
adkjt |
Gap (APIO16_gap) |
C++14 |
|
0 ms |
0 KB |
#include "gap.h"
#include<bits/stdc++.h>
using namespace std;
#define int long long
int *pl,*pr;
int l=0,r=1e18;
long long findGap(int T, int N)
{
int mx=0;
if(T==1)
{
MinMax(l,r,pl,pr);
l=*pl,r=*pr;
while(pl!=pr){
MinMax(l,r,pl,pr);
mx=max({mx,*pl-l,r-*pr});
l=*pl,r=*pr;
}
}
return mx;
}
Compilation message
/usr/bin/ld: /tmp/ccQtkgsk.o: in function `main':
grader.cpp:(.text.startup+0x1b7): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status