#include <bits/stdc++.h>
#pragma GCC optimize("03")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx2")
using namespace std;
#define ll long long
#define ld long double
#define pb push_back
#define pf push_front
#define pii pair<int,int>
#define all(v) v.begin(),v.end()
#define F first
#define S second
#define mem(a,i) memset(a,i,sizeof(a))
#define sz(s) (int)s.size()
#define y1 yy
#define ppb pop_back
#define lb lower_bound
#define ub upper_bound
#define gcd(a,b) __gcd(a,b)
#define in insert
const int MAX=3e5+15;
const int B=2e5;
const int N=104;
const int block=450;
const int maxB=MAX/B+10;
const ll inf=1e18;
const int mod=1e9+7;
const int mod1=1e9+9;
const ld eps=1e-9;
int dx[8]={1,0,-1,0,1,-1,-1,1};
int dy[8]={0,1,0,-1,1,-1,1,-1};
int a[MAX];
int ask(int pos){
return a[pos];
}
int[] guess(int n){
}
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
cin>>a[i];
}
}
Compilation message
rainbow.cpp:45:4: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
45 | int[] guess(int n){
| ^
rainbow.cpp:45:4: error: structured binding declaration cannot have type 'int'
45 | int[] guess(int n){
| ^~
rainbow.cpp:45:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
rainbow.cpp:45:4: error: empty structured binding declaration
rainbow.cpp:45:7: error: expected initializer before 'guess'
45 | int[] guess(int n){
| ^~~~~