Submission #432080

#TimeUsernameProblemLanguageResultExecution timeMemory
432080peuchConnecting Supertrees (IOI20_supertrees)C++17
Compilation error
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; }

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