제출 #382316

#제출 시각아이디문제언어결과실행 시간메모리
382316Andyvanh1동굴 (IOI13_cave)C++14
컴파일 에러
0 ms0 KiB
#include <iostream>
#include <vector>
using namespace std;



void exploreCave(int n){
    int S[n];
    int D[n];
    for(int i = 0; i < n; i++){
        S[i] = 0;
        D[i] = i+1;
    }
    int k = 0;
    while(k<n){
        k = tryCombination(S);
        S[k] = 1-S[k];
    }
    answer(S,D);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:13: error: 'tryCombination' was not declared in this scope
   16 |         k = tryCombination(S);
      |             ^~~~~~~~~~~~~~
cave.cpp:19:5: error: 'answer' was not declared in this scope
   19 |     answer(S,D);
      |     ^~~~~~