closing.cpp: In function 'void dfs(int, int, int, long long int)':
closing.cpp:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int i=0;i<g[s].size();i++) if(g[s][i]!=f) dfs(br,g[s][i],s,dist+w[s][i]);
| ~^~~~~~~~~~~~
closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:34:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i=0;i<vk.size();i++)
| ~^~~~~~~~~~
closing.cpp:67:22: 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]
67 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~
closing.cpp:83:17: error: conflicting declaration 'std::vector<int> put'
83 | vector<int> put;
| ^~~
closing.cpp:82:33: note: previous declaration as 'std::vector<std::pair<long long int, int> > put'
82 | vector<pair<long long,int>> put;
| ^~~
closing.cpp:86:19: error: 'aux' was not declared in this scope
86 | for(int i=0;i<aux.size();i++) put.push_back(aux[i].second);
| ^~~
closing.cpp:89:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | for(int i=0;i<put.size();i++)
| ~^~~~~~~~~~~
closing.cpp:92:9: error: 'sum' was not declared in this scope
92 | sum+=max(d[0][put[r]],d[1][put[r]])-d[1][put[r]];
| ^~~
closing.cpp:92:22: error: no match for 'operator[]' (operand types are 'long long int [200007]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, int> >, std::pair<long long int, int> >::value_type' {aka 'std::pair<long long int, int>'})
92 | sum+=max(d[0][put[r]],d[1][put[r]])-d[1][put[r]];
| ^
closing.cpp:92:35: error: no match for 'operator[]' (operand types are 'long long int [200007]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, int> >, std::pair<long long int, int> >::value_type' {aka 'std::pair<long long int, int>'})
92 | sum+=max(d[0][put[r]],d[1][put[r]])-d[1][put[r]];
| ^
closing.cpp:92:49: error: no match for 'operator[]' (operand types are 'long long int [200007]' and '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, int> >, std::pair<long long int, int> >::value_type' {aka 'std::pair<long long int, int>'})
92 | sum+=max(d[0][put[r]],d[1][put[r]])-d[1][put[r]];
| ^
closing.cpp:101:39: error: 'l' was not declared in this scope; did you mean 'lt'?
101 | ans=max(ans,(int)put.size()+r-l+1+lt);
| ^
| lt