Submission #724127

#TimeUsernameProblemLanguageResultExecution timeMemory
724127AlfaGenusPermutation (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; for(long long i = n - 2; i >= 0; i --)ans.push_back(i); 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);
      |                  ^~~~~~~~~~~~~~~~~~~~~