Submission #233571

# Submission time Handle Problem Language Result Execution time Memory
233571 2020-05-21T01:56:03 Z jam_xd_ Detecting Molecules (IOI16_molecules) C++17
Compilation error
0 ms 0 KB
#include "molecules.h"
#include "bits/stdc++.h"

using namespace std;

vector<int> find_subset(int l, int u, vector<int> w) {


	vector<int>resp;
	vector<int> nada;
	funcionaaaaa = w.size();

	int sum =0 ;
	for(int i=0;i<funcionaaaaa;i++){
		sum = sum + w[i];
		resp.push_back(i);
		if(sum >= min(u,l) and sum <= max(u,l)){
			return resp;
			break;
		}
		if(sum > max(u,l)){
			return nada;
			break;
		}
	}
	
}
//:v  ??

Compilation message

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:11:2: error: 'funcionaaaaa' was not declared in this scope
  funcionaaaaa = w.size();
  ^~~~~~~~~~~~