Submission #339550

# Submission time Handle Problem Language Result Execution time Memory
339550 2020-12-25T15:48:45 Z fixikmila Xoractive (IZhO19_xoractive) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
typedef long long ll;
typedef pair<ll,ll>pll;
typedef long double ld;
ll bin_pow(ll a,ll b){
    if(b==0)return 1;
    if(b%2==0){
        ll t=bin_pow(a,b/2);
        return t*t%MOD;
    }
    else return a*bin_pow(a,b-1)%MOD;
}
int []guess(int n){
    ll a[4];
    a[0]=ask(1);
    a[1]=ask(2);
    a[2]=ask(3);
    a[3]=ask(4);
    return a;
}

Compilation message

Xoractive.cpp:15:5: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
   15 | int []guess(int n){
      |     ^
Xoractive.cpp:15:5: error: structured binding declaration cannot have type 'int'
   15 | int []guess(int n){
      |     ^~
Xoractive.cpp:15:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
Xoractive.cpp:15:5: error: empty structured binding declaration
Xoractive.cpp:15:7: error: expected initializer before 'guess'
   15 | int []guess(int n){
      |       ^~~~~