Submission #849697

#TimeUsernameProblemLanguageResultExecution timeMemory
849697chilengamingDetecting Molecules (IOI16_molecules)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "molecules" #define int long long using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { vector<int> ans; vector<pair<int, int>> ww; int i = 0; for(int &a : w) { ww.push_back({a, i}); i++; } sort(ww.begin(), ww.end()); int R = 0, sum = w[0]; for(int L = 0; L < w.size(); L++) { while(sum < l && R < w.size() - 1) { R++; sum += w[R]; } if(sum >= l && sum <= u) { for(int j = L; j <= R; j++) { ans.push_back(ww[j].second); } return ans; } sum -= w[L]; } return ans; }

Compilation message (stderr)

molecules.cpp:2:10: fatal error: molecules: No such file or directory
    2 | #include "molecules"
      |          ^~~~~~~~~~~
compilation terminated.