Submission #1287938

#TimeUsernameProblemLanguageResultExecution timeMemory
1287938eri16Cave (IOI13_cave)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

void exploreCave(int n){
    
    vector <int> d,v;
    
    for (int i=0; i<n; i++){
        d.push_back(i);
        v.push_back(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);
      |     ^~~~~~