Submission #1168229

#TimeUsernameProblemLanguageResultExecution timeMemory
1168229stdfloatGap (APIO16_gap)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" #include "grader.cpp" using namespace std; using ll = long long; ll findGap(int T, int n) { ll s, t; MinMax(LLONG_MIN, LLONG_MAX, &s, &t); ll x = s, mx; int l = (t - s) / (n + 1); while (s <= t) { ll a, b; MinMax(s, s + l, &a, &b); if (~a) { mx = max(mx, a - x); x = b; } s += l + 1; } return mx; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccCtm2go.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/cc6ivyLF.o:gap.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccCtm2go.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc6ivyLF.o:gap.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status