Submission #1019843

#TimeUsernameProblemLanguageResultExecution timeMemory
1019843vjudge1Detecting Molecules (IOI16_molecules)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#define int long long

using namespace std;

int find_subset(int l, int u, vector <int> w) {
    if (l%w[0]==0) {
        return w;
    } else {
        return {};
    }
}

signed main() {
    int t; 
    cin >> t;
    while(t--) {
        //solve();
    }
}

Compilation message (stderr)

molecules.cpp: In function 'long long int find_subset(long long int, long long int, std::vector<long long int>)':
molecules.cpp:8:16: error: cannot convert 'std::vector<long long int>' to 'long long int' in return
    8 |         return w;
      |                ^