Submission #319354

#TimeUsernameProblemLanguageResultExecution timeMemory
319354TSooDetecting Molecules (IOI16_molecules)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; avector<int> find_subset(int 1, iinnt u, vetor<int> w) { vector<pair<int, int << x; for(int i = 0; i < w.size()i; i++){ x.push_back(make_pair(w[i], i)) } sort(x.begin(), x.end()); int n = W.size(); int L = 0; int R = 0; long long sum=0; vector<int> s; while(R< ){ sum += a[R]; while(sum > u && L <= R) sum -= x[L].first, L++; if(sum >= 1){ for(int i = L;i <= R; i++) a.push_back(x[i].second); break; } R++; } if(a.size()==0) a.push_back(0); return a; }

Compilation message (stderr)

molecules.cpp:3:1: error: 'avector' does not name a type
    3 | avector<int> find_subset(int 1, iinnt u, vetor<int> w) {
      | ^~~~~~~