답안 #233764

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
233764 2020-05-21T16:56:03 Z jam_xd_ Detecting Molecules (IOI16_molecules) C++17
컴파일 오류
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;
vectpr<int>nada;
for(int i=0;i<funcionaaa;i++){
	
	if(sum > max(l,u)){
		break;
	}
	sum = sum + gg;
	covid.push_back(i+1);

	if(sum >= min(l,u) and sum <= max(l,u)){
		afirmo = true;
		break;
	}
}

if(afirmo == true)return covid;
else return nada;


}
//:v  ??

Compilation message

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:12:1: error: 'vectpr' was not declared in this scope
 vectpr<int>nada;
 ^~~~~~
molecules.cpp:12:1: note: suggested alternative: 'getpt'
 vectpr<int>nada;
 ^~~~~~
 getpt
molecules.cpp:12:8: error: expected primary-expression before 'int'
 vectpr<int>nada;
        ^~~
molecules.cpp:28:13: error: 'nada' was not declared in this scope
 else return nada;
             ^~~~
molecules.cpp:28:13: note: suggested alternative: 'nanl'
 else return nada;
             ^~~~
             nanl