Submission #382315

#TimeUsernameProblemLanguageResultExecution timeMemory
382315Andyvanh1Cave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <iostream>
#include <vector>
using namespace std;



void exploreCave(int n){
    int S[n];
    int D[n];
    for(int i = 0; i < n; i++){
        S[i] = 0;
        D[i] = i+1;
    }
    int k = 0;
    while(k<n){
        k = tryCombination(S);
        S[k] = 1-S[k];
    }
    answer(S,D);
}



int main() {

    return 0;
}

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:13: error: 'tryCombination' was not declared in this scope
   16 |         k = tryCombination(S);
      |             ^~~~~~~~~~~~~~
cave.cpp:19:5: error: 'answer' was not declared in this scope
   19 |     answer(S,D);
      |     ^~~~~~