Submission #305670

# Submission time Handle Problem Language Result Execution time Memory
305670 2020-09-23T18:58:21 Z amunduzbaev Detecting Molecules (IOI16_molecules) C++14
Compilation error
0 ms 0 KB
#include "molecules.h"
#include <bits/stdc++.h>
#include "grader.cpp"
using namespace std;
vector<int> find_subset(int l, int u, vector<int> a) {

    vector<int>ans;
    int sum=0,i=0;
    while(sum+a[i]<u){
            ans.push_back(i+1);
        sum+=a[i];
        i++;
    }
    return ans;
}

Compilation message

/tmp/ccgxM5jS.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccL6tIoh.o:molecules.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status