cities.cpp: In function 'void solve(int)':
cities.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
51 | f(i,0,g[u].size()){
| ~~~~~~~~~~~~~~~
cities.cpp:51:3: note: in expansion of macro 'f'
51 | f(i,0,g[u].size()){
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:52:38: note: in expansion of macro 'F'
52 | if(dp[u][mk]+g[u][i].S<dp[g[u][i].F][mk]){
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:53:27: note: in expansion of macro 'F'
53 | s.erase(mp(dp[g[u][i].F][mk],g[u][i].F));
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:53:42: note: in expansion of macro 'F'
53 | s.erase(mp(dp[g[u][i].F][mk],g[u][i].F));
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:54:16: note: in expansion of macro 'F'
54 | dp[g[u][i].F][mk]=dp[u][mk]+g[u][i].S;
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:55:27: note: in expansion of macro 'F'
55 | s.erase(mp(dp[g[u][i].F][mk],g[u][i].F));
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:55:42: note: in expansion of macro 'F'
55 | s.erase(mp(dp[g[u][i].F][mk],g[u][i].F));
| ^
cities.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
61 | f(i,0,g[u].size()){
| ~~~~~~~~~~~~~~~
cities.cpp:61:3: note: in expansion of macro 'f'
61 | f(i,0,g[u].size()){
| ^
cities.cpp:7:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | #define f(i,a,b) for(int i=a;i<b;i++)
......
62 | f(j,0,v[mask].size()){
| ~~~~~~~~~~~~~~~~~~
cities.cpp:62:4: note: in expansion of macro 'f'
62 | f(j,0,v[mask].size()){
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:64:45: note: in expansion of macro 'F'
64 | upd(u,mask|nmask,dp[u][mask]+dp[g[u][i].F][nmask]+g[u][i].S);
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:65:17: note: in expansion of macro 'F'
65 | upd(g[u][i].F,mask|nmask,dp[u][mask]+dp[g[u][i].F][nmask]+g[u][i].S);
| ^
cities.cpp:18:11: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'firs'; did you mean 'first'?
18 | #define F firs
| ^~~~
cities.cpp:65:53: note: in expansion of macro 'F'
65 | upd(g[u][i].F,mask|nmask,dp[u][mask]+dp[g[u][i].F][nmask]+g[u][i].S);
| ^
cities.cpp: At global scope:
cities.cpp:70:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
70 | main(){
| ^~~~