Submission #425323

#TimeUsernameProblemLanguageResultExecution timeMemory
425323dreezyDetecting Molecules (IOI16_molecules)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "molecules.h"
using namespace std;
#define pb push_back

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


/***************/

Compilation message (stderr)

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:12:12: error: expected primary-expression before 'return'
   12 |     return return ans;
      |            ^~~~~~
molecules.cpp:12:11: error: expected ';' before 'return'
   12 |     return return ans;
      |           ^~~~~~~
      |           ;