Submission #139451

# Submission time Handle Problem Language Result Execution time Memory
139451 2019-07-31T18:19:37 Z reda Mechanical Doll (IOI18_doll) C++14
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std ;
#define  pb  push_back
#define  ll long long
#define  ld  long  double
#define  mp make_pair
#define  MOD 1000000007
#define endl '\n'
#pragma GCC optimize ("O3")
#define MAXN 105
void create_circuit(int M, vector<int> A) {
  int N = A.size();
 vector<int> C(M + 1);
  A.pb(0);
  for (int i=0;i<N;++i)
    C[A[i]] = A[i+1];

  C[0]=A[0];
  vector<int> X,Y;
  answer(C,X,Y);
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:20:3: error: 'answer' was not declared in this scope
   20 |   answer(C,X,Y);
      |   ^~~~~~