Submission #984216

#TimeUsernameProblemLanguageResultExecution timeMemory
984216stdfloatCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void exploreCave(int N) { int a[N]; for (int i = 0; i < N; i++) a[i] = 0; for (int i = 0; i < N; i++) if (tryCombination(a) == i) a[i] = 1; int b[N]; iota(b, b + N, 0); answer(a, b); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:13: error: 'tryCombination' was not declared in this scope
   10 |         if (tryCombination(a) == i) a[i] = 1;
      |             ^~~~~~~~~~~~~~
cave.cpp:15:5: error: 'answer' was not declared in this scope
   15 |     answer(a, b);
      |     ^~~~~~