제출 #520710

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

int par[5000], s[5000];
// par-mihez tartozik, 0-down, 1-up

void exploreCave(int n) {
    for (int i=0; i<n; i++) {
        par[i]=i;
    }
    while (true) {
        int x=tryCombination(t);
        if (x==-1) {
            break;
        }
        s[x]=1;
    }
    answer(t, par);
}

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:13:30: error: 't' was not declared in this scope
   13 |         int x=tryCombination(t);
      |                              ^
cave.cpp:19:12: error: 't' was not declared in this scope
   19 |     answer(t, par);
      |            ^