제출 #978948

#제출 시각아이디문제언어결과실행 시간메모리
978948rshohruh순열 (APIO22_perm)C++17
10 / 100
1 ms600 KiB
#include "perm.h" #include <bits/stdc++.h> using namespace std; std::vector<int> construct_permutation(long long k) { assert(k <= 100); vector<int> a(k-1); for(int i = 0; i < a.size(); ++i) a[i] = k-2-i; return a; }

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

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:9:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for(int i = 0; i < a.size(); ++i)
      |                 ~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...