Submission #1287940

#TimeUsernameProblemLanguageResultExecution timeMemory
1287940eri16Cave (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void exploreCave(int n){ int d[n],v[n]; for (int i=0; i<n; i++){ d[i]=i; v[i]=0; } int ans=0; while (ans!=(-1)){ int c=tryCombination(v); v[c]=1; } answer(v,d); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:15: error: 'tryCombination' was not declared in this scope
   16 |         int c=tryCombination(v);
      |               ^~~~~~~~~~~~~~
cave.cpp:20:5: error: 'answer' was not declared in this scope
   20 |     answer(v,d);
      |     ^~~~~~