closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:11:60: error: template argument 1 is invalid
11 | vector<vector<pair<int,int>>g(n,vector<pair<int,int>>());
| ^
closing.cpp:11:60: error: template argument 2 is invalid
closing.cpp:13:9: error: 'g' was not declared in this scope
13 | g[U[i]].pb({V[i],W[i]});
| ^
closing.cpp:25:20: error: 'g' was not declared in this scope
25 | for(auto i:g[v]){
| ^
closing.cpp:29:65: error: could not convert '{{v, <expression error>}, <expression error>}' from '<brace-enclosed initializer list>' to 'std::pair<std::pair<int, int>, long long int>'
29 | pair<pair<int,int>,ll>temp={{v,i.first},i.second+cur};
| ^
| |
| <brace-enclosed initializer list>