제출 #235291

#제출 시각아이디문제언어결과실행 시간메모리
235291pere_gil동굴 (IOI13_cave)C++14
컴파일 에러
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); }

컴파일 시 표준 에러 (stderr) 메시지

cave.cpp: In function 'void exploreCave(int)':
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