Submission #724101

#TimeUsernameProblemLanguageResultExecution timeMemory
724101AlfaGenusPermutation (APIO22_perm)C++17
Compilation error
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; }

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