Submission #992859

#TimeUsernameProblemLanguageResultExecution timeMemory
992859vjudge1Cave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; // int tryCombination(int S[]); // void answer(int S[], int D[]); #define ask(x) tryCombination(x) void exploreCave(int n) { int lvr[n] = {}, pos[n]; iota(pos, pos + n, 0); for(int i = 0; i < n; i++){ lvr[i] = ask(lvr) != i; } anser(lvr, pos); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:5: error: 'anser' was not declared in this scope; did you mean 'answer'?
   16 |     anser(lvr, pos);
      |     ^~~~~
      |     answer