제출 #1197332

#제출 시각아이디문제언어결과실행 시간메모리
1197332kadir순열 (APIO22_perm)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#include "perm.h"
#define ull unsigned long long
#define ll long long
#define ff first
#define ss second
#define pb push_back
using namespace std;
const ll mod=1e9+7;
const ll inf=1e18;
const ll mxn=1e6+5;
const ll MAX=1e9+6;
const ll logk=18;
vector<ll> construct_permutation(ll k) {
	vector<ll> v;
	for(ll i=k-1; i>=0; i--) {
		v.pb(i);
	}
	return v;
}
//int main() {
//	ios::sync_with_stdio(false);
//	cin.tie(0);
//	cout.tie(0);
//}

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

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