dreaming.cpp: In constructor 'Tree::Tree(std::vector<std::vector<int> >, ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
63 | REP(i,0,N) {REP(j,0,adj[i].size()) {farthest_dir[i].pb(0);}}
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:63:21: note: in expansion of macro 'REP'
63 | REP(i,0,N) {REP(j,0,adj[i].size()) {farthest_dir[i].pb(0);}}
| ^~~
dreaming.cpp: In member function 'void Tree::DFS_Build(ll, ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
75 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:75:9: note: in expansion of macro 'REP'
75 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp: In member function 'void Tree::DFS_distance(ll, ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
86 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:86:9: note: in expansion of macro 'REP'
86 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp: In member function 'void Tree::Calc_farthest_down(ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
115 | REP(i,0,sons[s].size()) {Calc_farthest_down(sons[s][i]);}
| ~~~~~~~~~~~~~~~~~~
dreaming.cpp:115:9: note: in expansion of macro 'REP'
115 | REP(i,0,sons[s].size()) {Calc_farthest_down(sons[s][i]);}
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
116 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:116:9: note: in expansion of macro 'REP'
116 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp: In member function 'void Tree::Calc_farthest_up(ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
128 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:128:9: note: in expansion of macro 'REP'
128 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
133 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:133:9: note: in expansion of macro 'REP'
133 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
139 | REP(j,0,adj[c].size()) {if(adj[c][j]==s) {farthest_dir[c][j]=farthest_up[c];}}
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:139:13: note: in expansion of macro 'REP'
139 | REP(j,0,adj[c].size()) {if(adj[c][j]==s) {farthest_dir[c][j]=farthest_up[c];}}
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
141 | REP(i,0,sons[s].size()) {Calc_farthest_up(sons[s][i]);}
| ~~~~~~~~~~~~~~~~~~
dreaming.cpp:141:9: note: in expansion of macro 'REP'
141 | REP(i,0,sons[s].size()) {Calc_farthest_up(sons[s][i]);}
| ^~~
dreaming.cpp: In member function 'void WTree::DFS_Build(ll, ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
182 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:182:9: note: in expansion of macro 'REP'
182 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp: In member function 'Tree WTree::Conv()':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
195 | REP(i,0,N) {REP(j,0,adj[i].size()) {if(adj[i][j].ff==p[i]) {values[i]=adj[i][j].ss;} ad[i].pb(adj[i][j].ff);}}
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:195:21: note: in expansion of macro 'REP'
195 | REP(i,0,N) {REP(j,0,adj[i].size()) {if(adj[i][j].ff==p[i]) {values[i]=adj[i][j].ss;} ad[i].pb(adj[i][j].ff);}}
| ^~~
dreaming.cpp: In member function 'void WG::DFS(ll)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
224 | REP(i,0,adj[s].size())
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:224:9: note: in expansion of macro 'REP'
224 | REP(i,0,adj[s].size())
| ^~~
dreaming.cpp: In member function 'std::vector<Tree> WG::CCG()':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
253 | REP(cc,0,CC.size())
| ~~~~~~~~~~~~~~
dreaming.cpp:253:9: note: in expansion of macro 'REP'
253 | REP(cc,0,CC.size())
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
264 | REP(j,0,adj[a].size()) {b=adj[a][j].ff; ad[i].pb({m[b],adj[a][j].ss});}
| ~~~~~~~~~~~~~~~~~
dreaming.cpp:264:17: note: in expansion of macro 'REP'
264 | REP(j,0,adj[a].size()) {b=adj[a][j].ff; ad[i].pb({m[b],adj[a][j].ss});}
| ^~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<Tree>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
284 | REP(i,0,F.size()) {F[i].Calc_Diametre(); ans=max(ans,F[i].diametre.ff);}
| ~~~~~~~~~~~~
dreaming.cpp:284:2: note: in expansion of macro 'REP'
284 | REP(i,0,F.size()) {F[i].Calc_Diametre(); ans=max(ans,F[i].diametre.ff);}
| ^~~
dreaming.cpp:21:33: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<Tree>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | #define REP(i,a,b) for(ll i=a; i<b; i++)
......
285 | vector<ll> R; REP(i,0,F.size()) {R.pb(F[i].Radius().ss);}
| ~~~~~~~~~~~~
dreaming.cpp:285:16: note: in expansion of macro 'REP'
285 | vector<ll> R; REP(i,0,F.size()) {R.pb(F[i].Radius().ss);}
| ^~~
dreaming.cpp:287:13: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
287 | if(R.size()!=N-M-1LL) {return;}
| ~~~~~~~~^~~~~~~~~
dreaming.cpp:287:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
287 | if(R.size()!=N-M-1LL) {return;}
| ^~~~~~