Submission #235294

#TimeUsernameProblemLanguageResultExecution timeMemory
235294pere_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; if(S[opne]==1) S[open]=0; open=tryCombination(S); } answer(S,D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:12:14: error: 'opne' was not declared in this scope
         if(S[opne]==1) S[open]=0;
              ^~~~
cave.cpp:12:14: note: suggested alternative: 'open'
         if(S[opne]==1) S[open]=0;
              ^~~~
              open