답안 #432080

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
432080 2021-06-17T20:18:13 Z peuch 슈퍼트리 잇기 (IOI20_supertrees) C++17
컴파일 오류
0 ms 0 KB
#include "supertrees.h"
#include <bits/stdc++.h>
using namespace std;

int construct(vector<vector<int> > p) {
	int n = pointer.size();
	vector<vector<int> > ans (n, vector<int> (n));
	for(int i = 1; i < n; i++){
		ans[i][i - 1] = 1;
		ans[i - 1][i] = 1;
	}
	build(answer);
	return 1;
}

Compilation message

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:6:10: error: 'pointer' was not declared in this scope
    6 |  int n = pointer.size();
      |          ^~~~~~~
supertrees.cpp:12:8: error: 'answer' was not declared in this scope
   12 |  build(answer);
      |        ^~~~~~