제출 #432080

#제출 시각아이디문제언어결과실행 시간메모리
432080peuch슈퍼트리 잇기 (IOI20_supertrees)C++17
컴파일 에러
0 ms0 KiB
#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; }

컴파일 시 표준 에러 (stderr) 메시지

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);
      |        ^~~~~~