Submission #1162104

#TimeUsernameProblemLanguageResultExecution timeMemory
1162104just슈퍼트리 잇기 (IOI20_supertrees)C++20
Compilation error
0 ms0 KiB
#include "bits/stdc++.h"
using namespace std;

#define vec vector

#ifndef EVAL
void build(vec<vec<int>> b) {}
#endif

int construct(vec<vec<int>> p) {
    int n = p.size();

    vec<vec<int>> b(n, vec<int>(n, 0));
    for (int i = 0; i < n - 1; i++) {
        b[i][i + 1] = 1;
    }

    build(b);
    return 1;
}

#ifndef EVAL
int main() {}
#endif

Compilation message (stderr)

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:18:5: error: 'build' was not declared in this scope
   18 |     build(b);
      |     ^~~~~