Submission #420248

#TimeUsernameProblemLanguageResultExecution timeMemory
420248vkgainzPacking Biscuits (IOI20_biscuits)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int64_t count_tastiness(int64_t x, vector<int64_t> a) { int64_t ans = 1; int64_t curr = 0, lst = -1; for(int i = 0; i < (int) a.size(); i++) { if(curr < (1LL << (i - lst))) ans *= (curr + 1), curr = 0, lst = i; curr += (1LL << (i - lst)) * a[i]; } ans *= (curr + 1); return ans; }

Compilation message (stderr)

/usr/bin/ld: /tmp/cczbsCEi.o: in function `main':
grader.cpp:(.text.startup+0x48b): undefined reference to `count_tastiness(long long, std::vector<long long, std::allocator<long long> >)'
collect2: error: ld returned 1 exit status