Submission #301247

#TimeUsernameProblemLanguageResultExecution timeMemory
301247qiangbaoConnecting Supertrees (IOI20_supertrees)C++14
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> #include "supertrees.h" #define pb push_back using namespace std; int n; vector<int> plamt; vector<vector<int> > ans; void construct(vector<vector<int> > p) { int i; n=p.size(); for(i=0;i<n;i++) plamt.pb(0); for(i=0;i<n;i++) ans.pb(plamt); for(i=2;i<=n;i++) ans[0][i-1]=ans[i-1][0]=1; build(ans); }

Compilation message (stderr)

supertrees.cpp:14:6: error: ambiguating new declaration of 'void construct(std::vector<std::vector<int> >)'
   14 | void construct(vector<vector<int> > p)
      |      ^~~~~~~~~
In file included from supertrees.cpp:3:
supertrees.h:3:5: note: old declaration 'int construct(std::vector<std::vector<int> >)'
    3 | int construct(std::vector<std::vector<int>> p);
      |     ^~~~~~~~~