Submission #314031

#TimeUsernameProblemLanguageResultExecution timeMemory
314031linear00000Connecting Supertrees (IOI20_supertrees)C++14
Compilation error
0 ms0 KiB
#include "supertrees.h"
#include <bits/stdc++.h>

using namespace std;

int construct(vector<vector<int> > v) {
	int n = v.size();
	int d[n][n];
	for (int i=0; i<n; i++) {
		d[0][i] = 1, d[i][0] = 1;
	}
	build(d);
	return 1;
}

Compilation message (stderr)

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:12:8: error: could not convert '(int (*)[n])(& d)' from 'int (*)[n]' to 'std::vector<std::vector<int> >'
   12 |  build(d);
      |        ^
      |        |
      |        int (*)[n]