simurgh.cpp:7:8: error: 'N' was not declared in this scope
int ok[N], pai[N];
^
simurgh.cpp:7:16: error: 'N' was not declared in this scope
int ok[N], pai[N];
^
simurgh.cpp:9:19: error: 'N' was not declared in this scope
vector<int> grafo[N];
^
simurgh.cpp: In function 'int Find(int)':
simurgh.cpp:13:13: error: 'pai' was not declared in this scope
if(x == pai[x]) return x;
^
simurgh.cpp:15:12: error: 'pai' was not declared in this scope
return pai[x] = Find(pai[x]);
^
simurgh.cpp: In function 'void join(int, int)':
simurgh.cpp:24:5: error: 'pai' was not declared in this scope
pai[a] = b;
^
simurgh.cpp: In function 'bool check(std::vector<int>, std::vector<int>&, std::vector<int>&)':
simurgh.cpp:29:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vet.size() != n - 1) return false;
^
simurgh.cpp:31:32: error: 'pai' was not declared in this scope
for(int i = 0; i < n; i++) pai[i] = i;
^
simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:55:32: error: 'grafo' was not declared in this scope
for(int i = 0; i < m; i++) grafo[u[i]].push_back(v[i]), grafo[v[i]].push_back(u[i]);
^