Submission #698528

#TimeUsernameProblemLanguageResultExecution timeMemory
698528MrM7mdPermutation (APIO22_perm)C++17
Compilation error
0 ms0 KiB
#include "perm.h" #include <bits/stdc++.h> using namespace std; std::vector<long long> construct_permutation(long long x){ long long k=log2(x); if((1<<k)!=x)k++; vector<long long>ans; for(int i=0;i<k;i++)ans.push_back(i); return ans; }

Compilation message (stderr)

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