parks.cpp:9:52: error: array bound is not an integer constant before ']' token
9 | vector<bool> vis(N,false);int cnt=0;set<int> node[N];vector<int> u,v,a,b;
| ^
parks.cpp: In function 'void dsf(int, std::vector<int>, std::vector<int>)':
parks.cpp:13:17: error: 'node' was not declared in this scope
13 | for(auto j: node[i]){
| ^~~~
parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:37:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | for(int i=0;i<x.size();i++){
| ~^~~~~~~~~
parks.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(int i=0;i<x.size();i++){
| ~^~~~~~~~~
parks.cpp:43:38: error: 'node' was not declared in this scope
43 | if(m.count({x[i]-2,y[i]})>0){node[i].insert(n[{x[i]-2,y[i]}]);node[n[{x[i]-2,y[i]}]].insert(i);}
| ^~~~
parks.cpp:44:38: error: 'node' was not declared in this scope
44 | if(m.count({x[i]+2,y[i]})>0){node[i].insert(n[{x[i]+2,y[i]}]);node[n[{x[i]+2,y[i]}]].insert(i);}
| ^~~~
parks.cpp:45:38: error: 'node' was not declared in this scope
45 | if(m.count({x[i],y[i]-2})>0){node[i].insert(n[{x[i],y[i]-2}]);node[n[{x[i],y[i]-2}]].insert(i);}
| ^~~~
parks.cpp:46:38: error: 'node' was not declared in this scope
46 | if(m.count({x[i],y[i]+2})>0){node[i].insert(n[{x[i],y[i]+2}]);node[n[{x[i],y[i]+2}]].insert(i);}
| ^~~~
parks.cpp:50:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | if(cnt==x.size()){
| ~~~^~~~~~~~~~