Submission #235289

#TimeUsernameProblemLanguageResultExecution timeMemory
235289pere_gilCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <iostream> #include "cave.h" using namespace std; void exploreCave(int 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:27: error: 'D' was not declared in this scope
     for(int i=0;i<N;i++){ D[i]=i; S[i]=0; }
                           ^
cave.cpp:7:35: error: 'S' was not declared in this scope
     for(int i=0;i<N;i++){ D[i]=i; S[i]=0; }
                                   ^
cave.cpp:8:29: error: 'S' was not declared in this scope
     int open=tryCombination(S);
                             ^
cave.cpp:9:16: error: 'n' was not declared in this scope
     while(open<n){
                ^
cave.cpp:12:14: error: 'tryComination' was not declared in this scope
         open=tryComination(S);
              ^~~~~~~~~~~~~
cave.cpp:12:14: note: suggested alternative: 'tryCombination'
         open=tryComination(S);
              ^~~~~~~~~~~~~
              tryCombination
cave.cpp:14:14: error: 'D' was not declared in this scope
     answer(S,D);
              ^