Submission #397237

#TimeUsernameProblemLanguageResultExecution timeMemory
397237ruadhanConnecting Supertrees (IOI20_supertrees)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int construct(vector<vector<int>> p) { int n = p.size(); vector<vector<int>> b(n, vector<int>(n)); for (int i = 1; i < n; i++) b[0][i] = 1, b[i][0] = 1; build(b); return 1; } int main() { return 0; }

Compilation message (stderr)

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