답안 #572906

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
572906 2022-06-05T13:16:27 Z moday_morning 순열 (APIO22_perm) C++17
컴파일 오류
0 ms 0 KB
#include "perm.h"
#include <bits/stdc++.h>

vector<int> construct_permutation(long long k)
{
    // k <= 90
    vector <int> ans = {};
    for (int i = k - 2; i >= 0; i--) {
        ans.push_back(i);
    }
    return ans;
}

Compilation message

perm.cpp:4:1: error: 'vector' does not name a type
    4 | vector<int> construct_permutation(long long k)
      | ^~~~~~