제출 #1178017

#제출 시각아이디문제언어결과실행 시간메모리
1178017JelalTkmPermutation (APIO22_perm)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "perm.h" #pragma GCC optimize ("O3") #pragma GCC target ("sse4") using namespace std; #define ll long long int // const int N = 1000 + 10; // const int md = 1e9 + 7; // const int INF = 5e6; vector<int> construct_permutation(ll k) { vector<ll> ans; for (ll i = k - 1; i >= 0; i--) ans.push_back(i); return ans; } // int32_t main(int32_t argc, char *argv[]) { // ios::sync_with_stdio(false); // cin.tie(nullptr); // int T = 1; // // cin >> T; // while (T--) { // vector<int> u = {0, 0, 0}, v = {1, 2, 3}, w = {5, 10, 5}; // vector<ll> ans = minimum_closure_costs(4, u, v, w); // for (auto i: ans) // cout << i << " "; // } // return 0; // }

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

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