Submission #940471

#TimeUsernameProblemLanguageResultExecution timeMemory
940471ezzzayDetecting Molecules (IOI16_molecules)C++14
Compilation error
0 ms0 KiB
#include "molecules.h" #include<bits/stdc++.h> using namespace std; #define int long long const int N=2e5+5; #define pb push_back #define ff first #define ss second std::vector<int> find_subset(int l, int u, std::vector<int> w) { int n=w.size(); vector<int>ans; for(int i=0;i<(1<<n);i++){ vector<int>vc; int s=0; for(int j=0;j<n;j++){ if(i & (1<<j)){ vc.pb(j+1); s+=w[j]; } } if(l<=s and s<=u){ ans=vc; break; } } return ans; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccR9KN9X.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