Submission #1171384

#TimeUsernameProblemLanguageResultExecution timeMemory
1171384ezzzaySecret (JOI14_secret)C++20
Compilation error
0 ms0 KiB
#include "secret.h"
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
vector<int>a;
void Init(int N, int A[]) {
    for(int i=0;i<N;i++)a.push_back(A[i]);
}

int Query(int L, int R) {
    int x=a[L];
    for(int i=L+1;i<=R;i++){
        x= Secret(x,A[i]);
    }
  return x;
}

Compilation message (stderr)

secret.cpp: In function 'int Query(int, int)':
secret.cpp:15:21: error: 'A' was not declared in this scope
   15 |         x= Secret(x,A[i]);
      |                     ^