제출 #742977

#제출 시각아이디문제언어결과실행 시간메모리
742977Abdurroshid순열 (APIO22_perm)C++17
컴파일 에러
0 ms0 KiB
/* It is code Zhanabergen Abdurroshid :)))) */ //#pragma GCC target( "sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") //#pragma GCC optimize("Ofast,unroll-loops,fast-math,O3") //#include "perm.h" #include<bits/stdc++.h> #define ll long long //#define int ll #define du long double #define m_p make_pair #define p_b push_back #define pii pair<int,int> #define piii pair<int,pii> #define vi vector<int> #define vii vector<pii> #define viii vector<piii> #define si set<int> #define sii set<pii> #define siii set<pair<int,pii> > #define F first #define S second #define pre(x) cout.precision(x); #define sz size() #define all(x) x.begin(),x.end() #define RUN ios_base::sync_with_stdio(false);cin.tie(0) #define OPEN freopen("painter.in","r",stdin);freopen("painter.out","w",stdout) using namespace std; ll fl(){ ll a; cin>>a; return a; } const ll N = 5e5 + 9, N2 = 1e6 + 9, INF = 1e9 + 9, MOD = 1e9 + 7, BL = 200; int[] construct_permutation(int k){ int a[k-1]; for(int i=0;i<k-1;i++)a[i] = i; return a; } /*main(){ RUN; return 0; }*/

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

perm.cpp:35:4: error: structured binding declaration cannot have type 'int'
   35 | int[] construct_permutation(int k){
      |    ^~
perm.cpp:35:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
perm.cpp:35:4: error: empty structured binding declaration
perm.cpp:35:7: error: expected initializer before 'construct_permutation'
   35 | int[] construct_permutation(int k){
      |       ^~~~~~~~~~~~~~~~~~~~~