제출 #724101

#제출 시각아이디문제언어결과실행 시간메모리
724101AlfaGenusPermutation (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(n);
    for(long long i = 0; i < n; i ++)
        ans[i] = n - i - 1;
    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);
      |                  ^~~~~~~~~~~~~~~~~~~~~