Submission #469894

#TimeUsernameProblemLanguageResultExecution timeMemory
469894IvnFDetecting Molecules (IOI16_molecules)C++14
Compilation error
0 ms0 KiB
#include "molecules.h" std::vector<long long> find_subset(long long l, long long u, std::vector<long long> w) { long long n=w.size(), kiri=0, sums=0, i=0; std::vector<long long>ans; for(;i<n;++i){ sums+=w[i]; while(sums > u) sums-=w[kiri++]; if(sums>=l && sums<=u){ for(long long j=kiri;j<=i;++j) ans.push_back(j); return ans; } } return ans; }

Compilation message (stderr)

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