Submission #162067

#TimeUsernameProblemLanguageResultExecution timeMemory
162067impriGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include"gap.h" using namespace std; long long res[100001]; long long findGap(int T,int N){ long long mi,ma; long long *mn=&mi; long long *mx=&ma; MinMax(1,10LLe18,mn,mx); res[1]=mi; res[N]=ma; int curmi=2; int curma=N-1; while(1){ if(curmi>curma)break; MinMax(res[curmi-1]+1,res[curma+1]-1,mn,mx); res[curmi]=mi; res[curma]=ma; curmi++; curma--; } long long r=10LLe18; for(int i=1;i<N;i++){ r=min(r,res[i+1]-res[i]); } return r; }

Compilation message (stderr)

gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:11:10: error: unable to find numeric literal operator 'operator""LLe18'
 MinMax(1,10LLe18,mn,mx);
          ^~~~~~~
gap.cpp:11:10: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
gap.cpp:24:13: error: unable to find numeric literal operator 'operator""LLe18'
 long long r=10LLe18;
             ^~~~~~~
gap.cpp:24:13: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes