Submission #723569

#TimeUsernameProblemLanguageResultExecution timeMemory
723569mhabibovPermutation (APIO22_perm)C++17
Compilation error
0 ms0 KiB
#include<perm.h> #include<bits/stdc++.h> using namespace std; vector<long long> construct_permutation(long long k){ vector<long long> permutation; for(long long i = k-2; i>=0; i--){ permutation.push_back(i); } return permutation; }

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 k){
      |                   ^~~~~~~~~~~~~~~~~~~~~
In file included from perm.cpp:1:
perm.h:3:18: note: old declaration 'std::vector<int> construct_permutation(long long int)'
    3 | std::vector<int> construct_permutation(long long k);
      |                  ^~~~~~~~~~~~~~~~~~~~~