제출 #984216

#제출 시각아이디문제언어결과실행 시간메모리
984216stdfloat동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

void exploreCave(int N) {
    int a[N];
    for (int i = 0; i < N; i++)
        a[i] = 0;

    for (int i = 0; i < N; i++)
        if (tryCombination(a) == i) a[i] = 1;

    int b[N];
    iota(b, b + N, 0);

    answer(a, b);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:13: error: 'tryCombination' was not declared in this scope
   10 |         if (tryCombination(a) == i) a[i] = 1;
      |             ^~~~~~~~~~~~~~
cave.cpp:15:5: error: 'answer' was not declared in this scope
   15 |     answer(a, b);
      |     ^~~~~~