supertrees.cpp: In function 'bool dfs1(int, int)':
supertrees.cpp:4:2: error: 'vis' was not declared in this scope
4 | vis[start]=1;
| ^~~
supertrees.cpp:5:16: error: 'nn' was not declared in this scope
5 | for(int i=0;i<nn;i++)
| ^~
supertrees.cpp:6:6: error: 'g' was not declared in this scope
6 | if(g[start][i]!=g[beg][i] && i!=start && i!=beg)
| ^
supertrees.cpp:9:16: error: 'nn' was not declared in this scope
9 | for(int i=0;i<nn;i++)
| ^~
supertrees.cpp:10:17: error: 'g' was not declared in this scope
10 | if(!vis[i] && g[start][i]==1)
| ^
supertrees.cpp:12:4: error: 'ans' was not declared in this scope
12 | ans[i][start]=1;
| ^~~
supertrees.cpp: In function 'bool dfs2(int, int)':
supertrees.cpp:24:2: error: 'vis' was not declared in this scope
24 | vis[start]=1;
| ^~~
supertrees.cpp:26:16: error: 'nn' was not declared in this scope
26 | for(int i=0;i<nn;i++)
| ^~
supertrees.cpp:27:6: error: 'g' was not declared in this scope
27 | if(g[start][i]!=g[beg][i] && i!=start && i!=beg)
| ^
supertrees.cpp:40:16: error: 'nn' was not declared in this scope
40 | for(int i=0;i<nn;i++)
| ^~
supertrees.cpp:41:17: error: 'g' was not declared in this scope
41 | if(!vis[i] && g[start][i]==2)
| ^
supertrees.cpp:43:4: error: 'ans' was not declared in this scope
43 | ans[i][start]=1;
| ^~~
supertrees.cpp:48:2: error: 'ans' was not declared in this scope
48 | ans[start][beg]=1;
| ^~~
supertrees.cpp: At global scope:
supertrees.cpp:53:15: error: 'vector' was not declared in this scope
53 | int construct(vector<vector<int>> pr)
| ^~~~~~
supertrees.cpp:53:22: error: 'vector' was not declared in this scope
53 | int construct(vector<vector<int>> pr)
| ^~~~~~
supertrees.cpp:53:29: error: expected primary-expression before 'int'
53 | int construct(vector<vector<int>> pr)
| ^~~