Submission #968231

# Submission time Handle Problem Language Result Execution time Memory
968231 2024-04-23T08:36:17 Z batsukh2006 Permutation (APIO22_perm) C++17
Compilation error
0 ms 0 KB
#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;
}


















Compilation message

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);
      |                  ^~~~~~~~~~~~~~~~~~~~~