제출 #968231

#제출 시각아이디문제언어결과실행 시간메모리
968231batsukh2006Permutation (APIO22_perm)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include "perm.h"
using namespace std;
 
#define MOD 1000000007
#define int long long
#define ff first
#define ss second
#define endl '\n'

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


















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

perm.cpp:11:13: error: ambiguating new declaration of 'std::vector<long long int> construct_permutation(long long int)'
   11 | vector<int> construct_permutation(long long k){
      |             ^~~~~~~~~~~~~~~~~~~~~
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);
      |                  ^~~~~~~~~~~~~~~~~~~~~