Submission #520710

#TimeUsernameProblemLanguageResultExecution timeMemory
520710peti1234Cave (IOI13_cave)C++17
Compilation error
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);
}

Compilation message (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);
      |            ^