Submission #1146160

#TimeUsernameProblemLanguageResultExecution timeMemory
1146160hoangnoobproGap (APIO16_gap)C++20
Compilation error
0 ms0 KiB
#include "gap.h" #include<bits/stdc++.h> using namespace std; #define ll long long long long findGap(ll T,ll N) { ll kq=0,x=0,y=1e18,a[100007],j,k; if(T==1) { MinMax(x,y,&a[1],&a[N]); j=2; k=N-1; while(j<=k) { MinMax(a[j-1],a[k+1],&a[j],&a[k]); j++; k--; } for(int i=2;i<=N;++i)kq=max(kq,a[i]-a[i-1]); } return kq; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccLMimSO.o: in function `main':
grader.cpp:(.text.startup+0x1c2): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status