Submission #649582

#TimeUsernameProblemLanguageResultExecution timeMemory
649582tvladm2009Detecting Molecules (IOI16_molecules)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.c> #include "molecules.h" using namespace std; typedef long long ll; vector<int> find_subset(int l, int u, vector<int> w) { sort(w.begin(), w.end()); int j = 0, sum = 0; int cnt = 0; vector<int> sol; for (int i = 0; i < w.size(); i++) { sum += w[i]; while (sum > u && j <= i) { sum -= w[j]; j++; } if (j <= i && l <= sum && sum <= u) { int cnt = i - j + 1; for (int k = 1; k <= cnt; k++) { sol.push_back(j + k - 1); } break; } } return sol; }

Compilation message (stderr)

molecules.cpp:1:10: fatal error: bits/stdc++.c: No such file or directory
    1 | #include <bits/stdc++.c>
      |          ^~~~~~~~~~~~~~~
compilation terminated.