제출 #1019844

#제출 시각아이디문제언어결과실행 시간메모리
1019844vjudge1Detecting 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:6:4: error: structured binding declaration cannot have type 'long long int'
    6 | int[] find_subset(int l, int u, vector <int> w) {
      |    ^~
molecules.cpp:6:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
molecules.cpp:6:4: error: empty structured binding declaration
molecules.cpp:6:7: error: expected initializer before 'find_subset'
    6 | int[] find_subset(int l, int u, vector <int> w) {
      |       ^~~~~~~~~~~