Submission #182411

#TimeUsernameProblemLanguageResultExecution timeMemory
182411AQTGap (APIO16_gap)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" using namespace std; long long arr[100005]; long long findGap(int T, int N){ int l = 1, r = N; long long lstl = 0, lstr = 1000000000000000000LL; while(l <= r){ MinMax(lstl+1, lstr-1, &lstl, &lstr); arr[l++] = lstl, arr[r--] = lstr; } long long ans = 0; for(int i = 2; i<=N; i++){ ans = max(ans, arr[i]-arr[i-1]); } return ans; } int main(){ }

Compilation message (stderr)

/tmp/cc811PWW.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccoDYnuk.o:gap.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status