제출 #233824

#제출 시각아이디문제언어결과실행 시간메모리
233824jam_xd_Detecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#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; bro = 0; for(int i=0;i<funcionaaa;i++){ if(sum + gg <= max(l,u)){ sum = sum + gg; covid.push_back(bro); } if(sum >= max(l,u)){ return covid; } } } //:v ?? //wEy Ya :"v aiuda xd

컴파일 시 표준 에러 (stderr) 메시지

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:15:1: error: 'bro' was not declared in this scope
 bro = 0;
 ^~~
molecules.cpp:15:1: note: suggested alternative: 'bzero'
 bro = 0;
 ^~~
 bzero
molecules.cpp:9:6: warning: unused variable 'afirmo' [-Wunused-variable]
 bool afirmo;
      ^~~~~~
molecules.cpp:27:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^