Submission #560872

#TimeUsernameProblemLanguageResultExecution timeMemory
560872fdnfksdGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "gap.h" using namespace std; 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:4:1: error: 'll' does not name a type
    4 | ll a[100009];
      | ^~
gap.cpp:5:1: error: 'll' does not name a type
    5 | ll findGap(ll t, ll n)
      | ^~