제출 #984745

#제출 시각아이디문제언어결과실행 시간메모리
984745Uultan12순열 (APIO22_perm)C++17
컴파일 에러
0 ms0 KiB
#include <random> std::vector<int> construct_permutation(long long k) { std::vector<int> permutation(k); for (int i = 0; i < k; ++i) { permutation[i] = i; } std::next_permutation(permutation.begin(), permutation.end()); return permutation; }

컴파일 시 표준 에러 (stderr) 메시지

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:9:10: error: 'next_permutation' is not a member of 'std'; did you mean 'is_permutation'?
    9 |     std::next_permutation(permutation.begin(), permutation.end());
      |          ^~~~~~~~~~~~~~~~
      |          is_permutation