Submission #139451

#TimeUsernameProblemLanguageResultExecution timeMemory
139451redaMechanical Doll (IOI18_doll)C++14
Compilation error
0 ms0 KiB
#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 (stderr)

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);
      |   ^~~~~~