제출 #1019843

#제출 시각아이디문제언어결과실행 시간메모리
1019843vjudge1Detecting Molecules (IOI16_molecules)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#define int long long

using namespace std;

int find_subset(int l, int u, vector <int> w) {
    if (l%w[0]==0) {
        return w;
    } else {
        return {};
    }
}

signed main() {
    int t; 
    cin >> t;
    while(t--) {
        //solve();
    }
}

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

molecules.cpp: In function 'long long int find_subset(long long int, long long int, std::vector<long long int>)':
molecules.cpp:8:16: error: cannot convert 'std::vector<long long int>' to 'long long int' in return
    8 |         return w;
      |                ^