제출 #1162104

#제출 시각아이디문제언어결과실행 시간메모리
1162104just슈퍼트리 잇기 (IOI20_supertrees)C++20
컴파일 에러
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

컴파일 시 표준 에러 (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);
      |     ^~~~~