Submission #723568

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