Submission #988327

#TimeUsernameProblemLanguageResultExecution timeMemory
988327Muaath_5Cave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
int n; #ifndef MUAATH_5 #include "grader.h" #endif int tryCombination(int c[]); void answer(int s[], int d[]); void exploreCave(int n_) { n = n_; int correct[n] = {}; int index[n] = {}; for (int i = 0; i < n; i++) { int zero = (tryCombination(correct) == i); int l = 0, r = n-1; while (l < r) { const int mid = (l+r)/2; int cpy[n]; for (int i = 0; i < n; i++) cpy[i] = correct[i]; if (!zero) for (int i = 0; i <= mid; i++) cpy[i] = 1; if (tryCombination(cpy) == i) l = mid+1; else r = mid; } index[i] = l; correct[i] = !zero; } answer(index, correct); }

Compilation message (stderr)

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