제출 #921926

#제출 시각아이디문제언어결과실행 시간메모리
921926Aiperiii동굴 (IOI13_cave)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define all(x) x.begin(),x.end()
using namespace std;
void exploreCave(int N) {
   int q[N],g[N];
   for(int i=0;i<N;i++){
      q[i]=1;
   }
   for(int i=0;i<N;i++){
      g[i]=i;
   }
   for(int i=0;i<N;i++){
      int res=tryCombination(q);
      if(res>=i+1 or res==-1)continue;
      q[i]=0;
   }
   answer(q,g);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:15: error: 'tryCombination' was not declared in this scope
   16 |       int res=tryCombination(q);
      |               ^~~~~~~~~~~~~~
cave.cpp:20:4: error: 'answer' was not declared in this scope
   20 |    answer(q,g);
      |    ^~~~~~