Submission #560873

#TimeUsernameProblemLanguageResultExecution timeMemory
560873fdnfksdGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "gap.h" using namespace std; using ll = long long; ll a[100009]; ll findGap(ll t, ll n) { if(t==1) { a[0]=-1; a[n+1]=2e18+10; ll i=1,j=n; while(i<=j) { MinMax(a[i-1]+1,a[j+1]-1,&a[i],&a[j]); i++; j--; } ll res=0; for(int i=2;i<=n;i++) res=max(res,a[i]-a[i-1]); return res; } }

Compilation message (stderr)

gap.cpp: In function 'll findGap(ll, ll)':
gap.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }
      | ^
/usr/bin/ld: /tmp/ccFyB37i.o: in function `main':
grader.cpp:(.text.startup+0x1b7): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status