제출 #917040

#제출 시각아이디문제언어결과실행 시간메모리
917040manishjha91동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include "cave.h"
#include <bits/stdc++.h>

void exploreCave(int N) {
    int a[N];
    memset(a,0,sizeof a);
    int d[N];
    for(int i=0; i<N; i++) d[i] = i;
    
    int i=tryComnination(a);
    while(i!=-1)
    {
    	a[i] ^=1;
    	i = tryCombination(a);
    }
    answer(a,d);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:11: error: 'tryComnination' was not declared in this scope; did you mean 'tryCombination'?
   10 |     int i=tryComnination(a);
      |           ^~~~~~~~~~~~~~
      |           tryCombination