Submission #1227536

#TimeUsernameProblemLanguageResultExecution timeMemory
1227536lance0Gap (APIO16_gap)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gap.h" using namespace std; typedef long long ll; ll st1(ll N) { vector<ll> small, large; ll x = 0, y = 1e18; while (x < y) { MinMax(x, y, &x, &y); small.push_back(x); large.push_back(y); } for (int i = large.size()-1; i >= 0; i--) { small.push_back(large[i]); } ll ans = 0; for (int i = 0; i < small.size()-1; i++) { ans = max(ans, small[i+1]-small[i]); } return ans; } ll st2(ll N) { return 0; } ll findGap(ll T, ll N) { if (T == 1) { return st1(N); } else { return st2(N); } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cc2GJWVE.o: in function `main':
grader.cpp:(.text.startup+0x1c2): undefined reference to `findGap(int, int)'
collect2: error: ld returned 1 exit status