제출 #650765

#제출 시각아이디문제언어결과실행 시간메모리
650765Litusiano동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
//#include "cave.h"
#include<bits/stdc++.h>
using namespace std;
void exploreCave(int N) {
  /* ... */
  int v[N]; for(int i = 0; i<N; i++) cin>>v[i];
  int idx = tryCombination(v);
  for(int i = idx; i<N;i++){
    v[i]^=1;
    i = tryCombination(v)-1;
  }
  int s[N]; for(int i = 0; i<N; i++) s[i] = i;
  answer(s,v);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:13: error: 'tryCombination' was not declared in this scope
    7 |   int idx = tryCombination(v);
      |             ^~~~~~~~~~~~~~
cave.cpp:13:3: error: 'answer' was not declared in this scope
   13 |   answer(s,v);
      |   ^~~~~~