designated_cities.cpp: In function 'll DFS1(int, int)':
designated_cities.cpp:11:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
11 | for(auto [i,w] : G[v]) res += b != i ? DFS1(i, v) : w;
| ^
designated_cities.cpp: In function 'll DFS2(std::vector<long long int>&, int, int)':
designated_cities.cpp:17:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
17 | for(auto [i,w] : G[v]){
| ^
designated_cities.cpp: In function 'void Go(int)':
designated_cities.cpp:29:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
29 | for(auto [i,w] : G[root]){
| ^
designated_cities.cpp:41:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for(int i=1; i<paths.size(); i++) R[i+2] = max(R[i+2], cost2 += paths[i].first);
| ~^~~~~~~~~~~~~
designated_cities.cpp:45:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | if(idx != paths.size()){
| ~~~~^~~~~~~~~~~~~~~
designated_cities.cpp:49:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int i=1; i<paths.size(); i++) R[i+2] = max(R[i+2], cost3 += paths[i].first);
| ~^~~~~~~~~~~~~