Submission #724128

#TimeUsernameProblemLanguageResultExecution timeMemory
724128AlfaGenusPermutation (APIO22_perm)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include<perm.h> using namespace std; vector<int> 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: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:8:12: error: could not convert 'ans' from 'vector<long long int>' to 'vector<int>'
    8 |     return ans;
      |            ^~~
      |            |
      |            vector<long long int>