Problem simurgh
User PlayVoltz
Submission Time 2026-01-30 14:16:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

simurgh.cpp: In function ‘int query_forest(std::vector<int>)’:
simurgh.cpp:75:13: error: ‘n’ was not declared in this scope; did you mean ‘in’?
75 | dsu.assign(n, -1);
| ^
| in
simurgh.cpp: In function ‘std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)’:
simurgh.cpp:104:2: error: ‘n’ was not declared in this scope
104 | n=N;
| ^