race.cpp:1:18: warning: extra tokens at end of #include directive
1 | #include "race.h"#include <bits/stdc++.h>
| ^
race.cpp:16:8: error: 'pair' was not declared in this scope
16 | vector<pair<int, int>> g[NM];
| ^~~~
race.cpp:2:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
1 | #include "race.h"#include <bits/stdc++.h>
+++ |+#include <utility>
2 | using namespace std;
race.cpp:16:8: error: 'pair' was not declared in this scope
16 | vector<pair<int, int>> g[NM];
| ^~~~
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:8: error: 'pair' was not declared in this scope
race.cpp:16:8: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
race.cpp:16:1: error: 'vector' does not name a type
16 | vector<pair<int, int>> g[NM];
| ^~~~~~
race.cpp:18:1: error: 'map' does not name a type
18 | map<int, int> mp;
| ^~~
race.cpp: In function 'int dfs_sz(int, int)':
race.cpp:23:19: error: 'g' was not declared in this scope
23 | for (auto v : g[u])
| ^
race.cpp: In function 'int findcen(int, int, int)':
race.cpp:31:19: error: 'g' was not declared in this scope
31 | for (auto v : g[u])
| ^
race.cpp: In function 'void get(int, int, int, int)':
race.cpp:39:9: error: 'mp' was not declared in this scope; did you mean 'p'?
39 | if (mp.count(k - w))
| ^~
| p
race.cpp:8:26: error: 'min' was not declared in this scope
8 | #define setmin(x, y) x = min((x), (y))
| ^~~
race.cpp:40:9: note: in expansion of macro 'setmin'
40 | setmin(ans, c + mp[k - w]);
| ^~~~~~
race.cpp:41:19: error: 'g' was not declared in this scope
41 | for (auto v : g[u])
| ^
race.cpp: In function 'void add(int, int, int, int)':
race.cpp:48:9: error: 'mp' was not declared in this scope; did you mean 'p'?
48 | if (mp.count(w))
| ^~
| p
race.cpp:8:26: error: 'min' was not declared in this scope
8 | #define setmin(x, y) x = min((x), (y))
| ^~~
race.cpp:49:9: note: in expansion of macro 'setmin'
49 | setmin(mp[w], c);
| ^~~~~~
race.cpp:52:19: error: 'g' was not declared in this scope
52 | for (auto v : g[u])
| ^
race.cpp: In function 'void cen(int)':
race.cpp:60:5: error: 'mp' was not declared in this scope
60 | mp.clear();
| ^~
race.cpp:62:19: error: 'g' was not declared in this scope
62 | for (auto v : g[c])
| ^
race.cpp:69:19: error: 'g' was not declared in this scope
69 | for (auto v : g[c])
| ^
race.cpp:72:5: error: 'cout' was not declared in this scope
72 | cout << endl;
| ^~~~
race.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include "race.h"#include <bits/stdc++.h>
+++ |+#include <iostream>
2 | using namespace std;
race.cpp: In function 'int best_path(int, int, int (*)[2], int*)':
race.cpp:80:9: error: 'g' was not declared in this scope
80 | g[H[i][0]].emplace_back(H[i][1], L[i]);
| ^