Submission #235298

#TimeUsernameProblemLanguageResultExecution timeMemory
235298pere_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++){ S[i]=0; } if(tryComnination(S)!=N-1){ for(int i=0;i<N;i++){ D[i]=i; } for(int i=0;i<N;i++){ if(tryCombination(S)==i) S[i]=1; } } else{ for(int i=0;i<N;i++){ S[i]=1; D[i]=tryCombination(S); S[i]=0; } } answer(S,D); }

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:9:8: error: 'tryComnination' was not declared in this scope
     if(tryComnination(S)!=N-1){
        ^~~~~~~~~~~~~~
cave.cpp:9:8: note: suggested alternative: 'tryCombination'
     if(tryComnination(S)!=N-1){
        ^~~~~~~~~~~~~~
        tryCombination