Problem portals
User PlayVoltz
Submission Time 2024-02-27 23:14:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

portals.cpp: In function ‘bool merge(int, int)’:
portals.cpp:7:4: error: ‘fp’ was not declared in this scope
7 | a=fp(a), b=fp(b);
| ^~
portals.cpp: In function ‘int32_t main()’:
portals.cpp:17:19: error: ‘pii’ was not declared in this scope
17 | vector<pair<int, pii> > edges;
| ^~~
portals.cpp:17:22: error: template argument 2 is invalid
17 | vector<pair<int, pii> > edges;
| ^
portals.cpp:17:24: error: template argument 1 is invalid
17 | vector<pair<int, pii> > edges;
| ^
portals.cpp:17:24: error: template argument 2 is invalid
portals.cpp:20:9: error: request for member ‘pb’ in ‘edges’, which is of non-class type ‘int’
20 | edges.pb(mp(0, mp(b, c)));
| ^~
portals.cpp:20:18: error: ‘mp’ was not declared in this scope
20 | edges.pb(mp(0, mp(b, c)));
|