supertrees.cpp:7:13: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
7 | std::vector<pair<int,int>> pp;
| ^~~~
| std::pair
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/vector:60,
from supertrees.h:1,
from supertrees.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:211:12: note: 'std::pair' declared here
211 | struct pair
| ^~~~
supertrees.cpp:7:25: error: template argument 1 is invalid
7 | std::vector<pair<int,int>> pp;
| ^~
supertrees.cpp:7:25: error: template argument 2 is invalid
supertrees.cpp: In function 'void dfs(int, int, int)':
supertrees.cpp:10:8: error: request for member 'push_back' in 'pp', which is of non-class type 'int'
10 | pp.push_back({i,j});
| ^~~~~~~~~
supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:44:19: error: request for member 'size' in 'pp', which is of non-class type 'int'
44 | for(int i=0;i<pp.size();i++){
| ^~~~
supertrees.cpp:46:18: error: invalid types 'int[int]' for array subscript
46 | if((p[pp[i].F][j] && !p[pp[i].S][j]) || (!p[pp[i].F][j] && p[pp[i].S][j])){
| ^
supertrees.cpp:46:36: error: invalid types 'int[int]' for array subscript
46 | if((p[pp[i].F][j] && !p[pp[i].S][j]) || (!p[pp[i].F][j] && p[pp[i].S][j])){
| ^
supertrees.cpp:46:56: error: invalid types 'int[int]' for array subscript
46 | if((p[pp[i].F][j] && !p[pp[i].S][j]) || (!p[pp[i].F][j] && p[pp[i].S][j])){
| ^
supertrees.cpp:46:73: error: invalid types 'int[int]' for array subscript
46 | if((p[pp[i].F][j] && !p[pp[i].S][j]) || (!p[pp[i].F][j] && p[pp[i].S][j])){
| ^