제출 #350922

#제출 시각아이디문제언어결과실행 시간메모리
350922spike1236Detecting Molecules (IOI16_molecules)C++14
컴파일 에러
0 ms0 KiB
veci find_subset(int asd, int asdas, veci w) {
    ll l = asd, r = asdas;
    ll sum = 0;
    veci res;
    for(int i = 0; i < sz(w); ++i) {
        if(l <= w[i] && w[i] <= r) return {i};
        if(w[i] < l) {
            sum += w[i];
            res.pb(i);
        }
    }
    if(sum < l) return {};
    while(sum > r && !res.empty()) sum -= w[res.back()], res.pop_back();
    return res;
}

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

molecules.cpp:1:1: error: 'veci' does not name a type
    1 | veci find_subset(int asd, int asdas, veci w) {
      | ^~~~