Submission #235290

#TimeUsernameProblemLanguageResultExecution timeMemory
235290pere_gilCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <iostream>
#include "cave.h"
using namespace std;

void exploreCave(int N)
{
    int D[n],S[N];
    for(int i=0;i<N;i++){ D[i]=i; S[i]=0; }
    int open=tryCombination(S);
    while(open<N){
        if(S[open]==0){ S[open]=1; }
        else S[open]=0;
        open=tryComination(S);
    }
    answer(S,D);
}

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:11: error: 'n' was not declared in this scope
     int D[n],S[N];
           ^
cave.cpp:8:27: error: 'D' was not declared in this scope
     for(int i=0;i<N;i++){ D[i]=i; S[i]=0; }
                           ^
cave.cpp:13:14: error: 'tryComination' was not declared in this scope
         open=tryComination(S);
              ^~~~~~~~~~~~~
cave.cpp:13:14: note: suggested alternative: 'tryCombination'
         open=tryComination(S);
              ^~~~~~~~~~~~~
              tryCombination
cave.cpp:15:14: error: 'D' was not declared in this scope
     answer(S,D);
              ^