제출 #1287938

#제출 시각아이디문제언어결과실행 시간메모리
1287938eri16동굴 (IOI13_cave)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void exploreCave(int n){ vector <int> d,v; for (int i=0; i<n; i++){ d.push_back(i); v.push_back(0); } int ans=0; while (ans!=(-1)){ int c=tryCombination(v); v[c]=1; } answer(v,d); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:15: error: 'tryCombination' was not declared in this scope
   16 |         int c=tryCombination(v);
      |               ^~~~~~~~~~~~~~
cave.cpp:20:5: error: 'answer' was not declared in this scope
   20 |     answer(v,d);
      |     ^~~~~~