제출 #698529

#제출 시각아이디문제언어결과실행 시간메모리
698529MrM7md순열 (APIO22_perm)C++17
0 / 100
0 ms212 KiB
#include "perm.h" #include <bits/stdc++.h> using namespace std; std::vector<int> construct_permutation(long long k){ long long x=log2(x); if((1<<x)!=k)x++; vector<int>ans; for(int i=0;i<x;i++)ans.push_back(i); return ans; }

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

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:7:20: warning: 'x' is used uninitialized in this function [-Wuninitialized]
    7 |    long long x=log2(x);
      |                ~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...