Submission #1020839

#TimeUsernameProblemLanguageResultExecution timeMemory
1020839ZicrusMechanical Doll (IOI18_doll)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; void create_circuit(int M, vector<int> A) { A.push_back(0); vector<int> C(M+1); int prev = 0; for(auto &e : A) { C[prev] = e; prev = e; } answer(C, {}, {}); return; }

Compilation message (stderr)

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:14:5: error: 'answer' was not declared in this scope
   14 |     answer(C, {}, {});
      |     ^~~~~~