제출 #724127

#제출 시각아이디문제언어결과실행 시간메모리
724127AlfaGenus순열 (APIO22_perm)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include<perm.h>
using namespace std;
 
vector<long long> construct_permutation(long long n){
    vector<long long> ans;
    for(long long i = n - 2; i >= 0; i --)ans.push_back(i);
    return ans;
}

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

perm.cpp:5:19: error: ambiguating new declaration of 'std::vector<long long int> construct_permutation(long long int)'
    5 | vector<long long> construct_permutation(long long n){
      |                   ^~~~~~~~~~~~~~~~~~~~~
In file included from perm.cpp:2:
perm.h:3:18: note: old declaration 'std::vector<int> construct_permutation(long long int)'
    3 | std::vector<int> construct_permutation(long long k);
      |                  ^~~~~~~~~~~~~~~~~~~~~