race.cpp:9:1: error: 'vector' does not name a type
9 | vector<pair<int, int>> graf[MAXN];
| ^~~~~~
race.cpp: In function 'void PoliczWielkoscPoddrzew(int, int)':
race.cpp:18:25: error: 'graf' was not declared in this scope
18 | for (auto& [s, w] : graf[v]){
| ^~~~
race.cpp: In function 'int znajdzCentorid(int, int, int)':
race.cpp:29:25: error: 'graf' was not declared in this scope
29 | for (auto& [s, w] : graf[v]){
| ^~~~
race.cpp: At global scope:
race.cpp:42:1: error: 'vector' does not name a type
42 | vector<pair<ll, int>> odleglosci;
| ^~~~~~
race.cpp: In function 'void policzOdleglosci(int, int, ll, ll)':
race.cpp:45:5: error: 'odleglosci' was not declared in this scope
45 | odleglosci.push_back({aktOdl, g});
| ^~~~~~~~~~
race.cpp:46:25: error: 'graf' was not declared in this scope
46 | for (auto& [s, w] : graf[v]){
| ^~~~
race.cpp: In function 'int centroidDecomp(int)':
race.cpp:61:5: error: 'unordered_map' was not declared in this scope
61 | unordered_map<ll, int> bestOdl;
| ^~~~~~~~~~~~~
race.cpp:2:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
1 | #include <iostream>
+++ |+#include <unordered_map>
2 |
race.cpp:61:21: error: expected primary-expression before ',' token
61 | unordered_map<ll, int> bestOdl;
| ^
race.cpp:61:23: error: expected primary-expression before 'int'
61 | unordered_map<ll, int> bestOdl;
| ^~~
race.cpp:62:5: error: 'bestOdl' was not declared in this scope
62 | bestOdl[0] = 0;
| ^~~~~~~
race.cpp:64:25: error: 'graf' was not declared in this scope
64 | for (auto& [s, w] : graf[centr]){
| ^~~~
race.cpp:66:13: error: 'odleglosci' was not declared in this scope
66 | odleglosci.clear();
| ^~~~~~~~~~
race.cpp:81:25: error: 'graf' was not declared in this scope
81 | for (auto& [s, w] : graf[centr]){
| ^~~~
race.cpp: At global scope:
race.cpp:93:36: error: 'vector' was not declared in this scope
93 | int best_path(int N, int K, vector<vector<int>>& H, vector<int>& L){
| ^~~~~~
race.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <iostream>
+++ |+#include <vector>
2 |
race.cpp:93:36: error: 'vector' was not declared in this scope
93 | int best_path(int N, int K, vector<vector<int>>& H, vector<int>& L){
| ^~~~~~
race.cpp:93:36: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
race.cpp:93:36: error: 'vector' was not declared in this scope
race.cpp:93:36: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
race.cpp:93:36: error: 'vector' was not declared in this scope
race.cpp:93:36: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
race.cpp:93:29: error: 'vector' has not been declared
93 | int best_path(int N, int K, vector<vector<int>>& H, vector<int>& L){
| ^~~~~~
race.cpp:93:35: error: expected ',' or '...' before '<' token
93 | int best_path(int N, int K, vector<vector<int>>& H, vector<int>& L){
| ^
race.cpp: In function 'int best_path(int, int, int)':
race.cpp:97:9: error: 'graf' was not declared in this scope
97 | graf[H[i][0]].push_back({H[i][1], L[i]});
| ^~~~
race.cpp:97:14: error: 'H' was not declared in this scope
97 | graf[H[i][0]].push_back({H[i][1], L[i]});
| ^
race.cpp:97:43: error: 'L' was not declared in this scope
97 | graf[H[i][0]].push_back({H[i][1], L[i]});
| ^