Submission #104437

#TimeUsernameProblemLanguageResultExecution timeMemory
104437BadralCave (IOI13_cave)C++17
Compilation error
0 ms0 KiB
#include "cave.h"
#include<bits/stdc++.h>

using namespace std;

void exploreCave(int N) {
    int a[N+1];
    int d[N+1];
    memset(a, 0, sizeof(a));
    
    for(int i = 0; i < N; i++) {
        d[i] = i;
        if(tryCombination(a) == i+1) {
            continue;
        }else {
            a[i] = 1;
        }
    }
    ans(a, d);
}

Compilation message (stderr)

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:19:5: error: 'ans' was not declared in this scope
     ans(a, d);
     ^~~
cave.cpp:19:5: note: suggested alternative: 'abs'
     ans(a, d);
     ^~~
     abs