Submission #47272

#TimeUsernameProblemLanguageResultExecution timeMemory
47272TalantGap (APIO16_gap)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" #include "grader.cpp" #define int long long using namespace std; const int M = (1e6 + 5); int ans = 0; int a[M]; int l,r = 1e18; int ll,rr; long long findGap(int T, int N) { if (T == 1) { int o = (N + 1) / 2; ll = 1,rr = N; while (o --) { MinMax(l,r,&a[ll],&a[rr]); l = a[ll] + 1,r = a[rr] + 1; ll ++,rr --; } for (int i = 1; i < N; i ++) ans = max(ans,a[i + 1] - a[i]); return ans; } else { return 0; } }

Compilation message (stderr)

/tmp/cc7jsCBP.o: In function `MinMax(long long, long long, long long*, long long*)':
grader.cpp:(.text+0x0): multiple definition of `MinMax(long long, long long, long long*, long long*)'
/tmp/ccOUzYl5.o:gap.cpp:(.text+0x0): first defined here
/tmp/cc7jsCBP.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccOUzYl5.o:gap.cpp:(.text.startup+0x0): first defined here
/tmp/ccOUzYl5.o: In function `main':
gap.cpp:(.text.startup+0x18e): undefined reference to `findGap(int, int)'
/tmp/cc7jsCBP.o: In function `main':
grader.cpp:(.text.startup+0x18e): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status