Submission #1192957

#TimeUsernameProblemLanguageResultExecution timeMemory
1192957yoshiDetecting Molecules (IOI16_molecules)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include< "molecules.h"> #define ll long long #define pb push_back #define ss second #define ff first using namespace std; ll df[1234567],ans; vector<ll> vv[1234567]; vector<int> find_subset(int l ,int u, vector<int> w){ ll n=w.size(); vector<pair<ll,ll>> a; for(ll i=0; i<n; i++){ a.pb({w[i], i}); } sort(a.begin(), a.end()); ll sum=0,k=0; for(ll r=0; r<n; r++){ sum+=a[r].ff; if(sum>u){ sum-=a[k].ff; k++; } if(sum>l){ vector<ll> ans; for(ll i=k; i<=r; i++){ ans.pb(a[i].ss); } return ans; } } return {}; }

Compilation message (stderr)

molecules.cpp:2:9: fatal error:  "molecules.h": No such file or directory
    2 | #include< "molecules.h">
      |         ^~~~~~~~~~~~~~~~
compilation terminated.
molecules.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
molecules_c.h:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~