Submission #233813

# Submission time Handle Problem Language Result Execution time Memory
233813 2020-05-21T19:26:20 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) {

int gg = w[0], funcionaaa = w.size(), sum = 0;
bool afirmo;

vector<int>covid;
vector<int>nada;

if(l == u and  w[0]!= l or gg * funcionaa < max(l,u))return nada;


}
//:v  ??

Compilation message

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:14:33: error: 'funcionaa' was not declared in this scope
 if(l == u and  w[0]!= l or gg * funcionaa < max(l,u))return nada;
                                 ^~~~~~~~~
molecules.cpp:14:33: note: suggested alternative: 'funcionaaa'
 if(l == u and  w[0]!= l or gg * funcionaa < max(l,u))return nada;
                                 ^~~~~~~~~
                                 funcionaaa
molecules.cpp:8:16: warning: unused variable 'funcionaaa' [-Wunused-variable]
 int gg = w[0], funcionaaa = w.size(), sum = 0;
                ^~~~~~~~~~
molecules.cpp:8:39: warning: unused variable 'sum' [-Wunused-variable]
 int gg = w[0], funcionaaa = w.size(), sum = 0;
                                       ^~~
molecules.cpp:9:6: warning: unused variable 'afirmo' [-Wunused-variable]
 bool afirmo;
      ^~~~~~
molecules.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^