oneway.cpp:29:1: error: 'vector' does not name a type
29 | vector<pii> adj[maxn];
| ^~~~~~
oneway.cpp: In function 'void dfs(int)':
oneway.cpp:9:13: error: 'pair' was not declared in this scope
9 | #define pii pair<int,int>
| ^~~~
oneway.cpp:44:9: note: in expansion of macro 'pii'
44 | for(pii Ed : adj[v])
| ^~~
oneway.cpp:1:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
+++ |+#include <utility>
1 |
oneway.cpp:9:18: error: expected primary-expression before 'int'
9 | #define pii pair<int,int>
| ^~~
oneway.cpp:44:9: note: in expansion of macro 'pii'
44 | for(pii Ed : adj[v])
| ^~~
oneway.cpp:66:1: error: expected primary-expression before '}' token
66 | }
| ^
oneway.cpp:65:6: error: expected ';' before '}' token
65 | }
| ^
| ;
66 | }
| ~
oneway.cpp:66:1: error: expected primary-expression before '}' token
66 | }
| ^
oneway.cpp:65:6: error: expected ')' before '}' token
65 | }
| ^
| )
66 | }
| ~
oneway.cpp:44:8: note: to match this '('
44 | for(pii Ed : adj[v])
| ^
oneway.cpp:66:1: error: expected primary-expression before '}' token
66 | }
| ^
oneway.cpp: In function 'int lca(int, int)':
oneway.cpp:78:9: error: 'swap' was not declared in this scope
78 | swap(u, v);
| ^~~~
oneway.cpp: In function 'int main()':
oneway.cpp:10:14: error: 'ios_base' has not been declared
10 | #define FAST ios_base::sync_with_stdio(false), cin.tie(), cout.tie();
| ^~~~~~~~
oneway.cpp:100:5: note: in expansion of macro 'FAST'
100 | FAST;
| ^~~~
oneway.cpp:10:48: error: 'cin' was not declared in this scope
10 | #define FAST ios_base::sync_with_stdio(false), cin.tie(), cout.tie();
| ^~~
oneway.cpp:100:5: note: in expansion of macro 'FAST'
100 | FAST;
| ^~~~
oneway.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 |
oneway.cpp:10:59: error: 'cout' was not declared in this scope
10 | #define FAST ios_base::sync_with_stdio(false), cin.tie(), cout.tie();
| ^~~~
oneway.cpp:100:5: note: in expansion of macro 'FAST'
100 | FAST;
| ^~~~
oneway.cpp:10:59: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
10 | #define FAST ios_base::sync_with_stdio(false), cin.tie(), cout.tie();
| ^~~~
oneway.cpp:100:5: note: in expansion of macro 'FAST'
100 | FAST;
| ^~~~
oneway.cpp:108:9: error: 'adj' was not declared in this scope
108 | adj[a[i]].pb({b[i], i});
| ^~~