제출 #1209915

#제출 시각아이디문제언어결과실행 시간메모리
1209915LIACave (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef int ll; typedef tuple<ll, ll, ll> plll; typedef vector<plll> vplll; typedef pair<ll, ll> pll; typedef vector<ll> vll; typedef vector<pll> vpll; typedef vector<vector<pll>> vvpll; typedef vector<vector<ll>> vvll; typedef vector<bool> vb; typedef vector<vector<bool>> vvb; #define loop(i, s, e) for (ll i = (s); i < (e); ++i) #define loopr(i, e, s) for (ll i = (e)-1; i >= (s); --i) #define all(a) a.begin(), a.end() const ll inf = 1e9 + 7; void exploreCave(int n) { ll ans[n]; loop(i,0,n) { ans[i] = i; } ll s[n]; loop(i,0,n) { s[i] = 0; if (tryCombination(s)!=i) { continue; } s[i] = 1; } answer(s, ans); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:27:9: error: 'tryCombination' was not declared in this scope
   27 |     if (tryCombination(s)!=i) {
      |         ^~~~~~~~~~~~~~
cave.cpp:32:3: error: 'answer' was not declared in this scope
   32 |   answer(s, ans);
      |   ^~~~~~