Submission #187202

#TimeUsernameProblemLanguageResultExecution timeMemory
187202rzbtGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#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(int t,int n){ ll res=0; ll l,d,tl,td; MinMax(0ll,1000000000000000000ll,&l,&d); while(n>1){ MinMax(l+1,d-1,&tl,&td); res=max(res,max(tl-l,d-td)); l=tl; d=td; n-=2 } return res; }

Compilation message (stderr)

gap.cpp: In function 'll findGap(int, int)':
gap.cpp:17:5: error: 'MinMax' was not declared in this scope
     MinMax(0ll,1000000000000000000ll,&l,&d);
     ^~~~~~
gap.cpp:17:5: note: suggested alternative: 'rindex'
     MinMax(0ll,1000000000000000000ll,&l,&d);
     ^~~~~~
     rindex
gap.cpp:24:5: error: expected ';' before '}' token
     }
     ^