Submission #658263

#TimeUsernameProblemLanguageResultExecution timeMemory
658263Zena_HossamPermutation (APIO22_perm)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "perm.h" #define ll long long using namespace std; std::vector<int> construct_permutation(long long k) { vector<ll>v; for(ll i=k-1;i>=0;i--)v.push_back(i); return v; }

Compilation message (stderr)

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:9:9: error: could not convert 'v' from 'vector<long long int>' to 'vector<int>'
    9 |  return v;
      |         ^
      |         |
      |         vector<long long int>