Submission #286113

#TimeUsernameProblemLanguageResultExecution timeMemory
286113NONAMEMechanical Doll (IOI18_doll)C++14
Compilation error
0 ms0 KiB
#include "grader.h" const int MAX_M = (int)(1e5 + 500); std::vector <int> res, X, Y; std::vector <int> g[MAX_M]; void create_circuit (int m, std::vector <int> a) { int n = (int)(a.size()); res.resize(n + 1); res[0] = a[0]; for (int i = 0; i < n; ++i) g[a[i]].push_back((i + 1 == n) ? 0 : a[i + 1]); int cur = -1; for (int i = 1; i <= m; ++i) { if ((int)(g[i].size()) == 0) res[i] = 0; if ((int)(g[i].size()) == 1) res[i] = g[i][0]; if ((int)(g[i].size()) == 2) { res[i] = cur; X.push_back(g[i][0]); Y.push_back(g[i][1]); --cur; } } answer(res, X, Y); }

Compilation message (stderr)

doll.cpp:1:10: fatal error: grader.h: No such file or directory
    1 | #include "grader.h"
      |          ^~~~~~~~~~
compilation terminated.