simurgh.cpp: In function 'void dfs(int, int, int)':
simurgh.cpp:17:19: error: 'struct std::pair<int, int>' has no member named 'fi'
17 | if (vis[x.fi] && x.fi == root)
| ^~
simurgh.cpp:17:28: error: 'struct std::pair<int, int>' has no member named 'fi'
17 | if (vis[x.fi] && x.fi == root)
| ^~
simurgh.cpp:18:37: error: 'struct std::pair<int, int>' has no member named 'se'
18 | back[subId].push_back(x.se);
| ^~
simurgh.cpp:21:23: error: 'struct std::pair<int, int>' has no member named 'fi'
21 | nxtId = x.fi;
| ^~
simurgh.cpp:22:19: error: 'struct std::pair<int, int>' has no member named 'se'
22 | dfsTree[x.se] = true;
| ^~
simurgh.cpp:23:15: error: 'struct std::pair<int, int>' has no member named 'fi'
23 | dfs(x.fi, root, nxtId);
| ^~
simurgh.cpp: In function 'std::vector<int> find_roads(int, std::vector<int>, std::vector<int>)':
simurgh.cpp:43:26: error: 'struct std::pair<int, int>' has no member named 'se'
43 | if (status[x.se] != IDK)
| ^~
simurgh.cpp:48:42: error: 'struct std::pair<int, int>' has no member named 'se'
48 | if (dfsTree[j] && j != x.se)
| ^~
simurgh.cpp:50:29: error: 'struct std::pair<int, int>' has no member named 'se'
50 | toQ.push_back(x.se);
| ^~
simurgh.cpp:51:24: error: 'count_common_roads' was not declared in this scope
51 | int orig = count_common_roads(toQ);
| ^~~~~~~~~~~~~~~~~~
simurgh.cpp:52:22: error: 'struct std::pair<int, int>' has no member named 'se'
52 | status[x.se] = ROYAL;
| ^~
simurgh.cpp:54:34: error: 'struct std::pair<int, int>' has no member named 'fi'
54 | for (auto& y: back[x.fi]) {
| ^~
simurgh.cpp:59:30: error: 'struct std::pair<int, int>' has no member named 'se'
59 | status[x.se] = NOT_ROYAL;
| ^~