Submission #1001702

#TimeUsernameProblemLanguageResultExecution timeMemory
1001702ayankarimovaDetecting Molecules (IOI16_molecules)C++14
Compilation error
0 ms0 KiB
#include "molecules.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
std::vector<int> find_subset(int l, int u, std::vector<int> w) {
    vector<int>ans;
    ll v=w[0];
    ll num=(l+v-1)/v;
    if(num*v<=u){
        for(int i=0; i<num; i++) ans.push_back(i);
        return ans;
    }
    
    return 0;
}
/*
{} []
*/

Compilation message (stderr)

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:14:12: error: could not convert '0' from 'int' to 'std::vector<int>'
   14 |     return 0;
      |            ^
      |            |
      |            int