race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:2:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
1 | #include "race.h"
+++ |+#include <utility>
2 | using namespace std;
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: error: 'pair' was not declared in this scope
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:10:13: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
10 | #define pii pair<int, int>
| ^~~~
race.cpp:18:8: note: in expansion of macro 'pii'
18 | vector<pii> adj[MAXN];
| ^~~
race.cpp:18:1: error: 'vector' does not name a type
18 | vector<pii> adj[MAXN];
| ^~~~~~
race.cpp: In function 'void count(long long int, long long int)':
race.cpp:23:25: error: 'adj' was not declared in this scope
23 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp: In function 'long long int find(long long int, long long int, long long int)':
race.cpp:30:25: error: 'adj' was not declared in this scope
30 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp: In function 'void reset(long long int, long long int)':
race.cpp:48:25: error: 'adj' was not declared in this scope
48 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp: In function 'void dfs1(long long int, long long int)':
race.cpp:57:21: error: 'min' was not declared in this scope
57 | ans=min(ans, h[u]+mp[k-d[u]]);
| ^~~
race.cpp:59:25: error: 'adj' was not declared in this scope
59 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp: In function 'void dfs2(long long int, long long int)':
race.cpp:68:26: error: 'min' was not declared in this scope
68 | mp[d[u]]=min(mp[d[u]], h[u]);
| ^~~
race.cpp:69:25: error: 'adj' was not declared in this scope
69 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp: In function 'void solve(long long int)':
race.cpp:78:25: error: 'adj' was not declared in this scope
78 | for(auto [v, w]:adj[u]){
| ^~~
race.cpp:89:21: error: 'adj' was not declared in this scope
89 | FOD(i, (int)adj[u].size()-1, 0){
| ^~~
race.cpp:7:36: note: in definition of macro 'FOD'
7 | #define FOD(i, r, l) for (int i = (r); i >= (l); i--)
| ^
race.cpp: In function 'void centroid(long long int, long long int)':
race.cpp:105:25: error: 'adj' was not declared in this scope
105 | for(auto [v, w]:adj[root]){
| ^~~
race.cpp: In function 'long long int best_path(long long int, long long int, long long int (*)[2], long long int*)':
race.cpp:121:17: error: 'adj' was not declared in this scope
121 | adj[u].push_back({v, c});
| ^~~
race.cpp:128:5: error: 'cout' was not declared in this scope
128 | cout << ans;
| ^~~~
race.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include "race.h"
+++ |+#include <iostream>
2 | using namespace std;