Main.cpp: In function 'void dfs(int, int)':
Main.cpp:15:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | #define REP(i, n) for(int i = 0; i < n; ++i)
......
35 | REP(i, v[node].size()){
| ~~~~~~~~~~~~~~~~~
Main.cpp:35:3: note: in expansion of macro 'REP'
35 | REP(i, v[node].size()){
| ^~~
Main.cpp:15:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | #define REP(i, n) for(int i = 0; i < n; ++i)
......
43 | REP(i, v[node].size()){
| ~~~~~~~~~~~~~~~~~
Main.cpp:43:4: note: in expansion of macro 'REP'
43 | REP(i, v[node].size()){
| ^~~
Main.cpp: In function 'void bfs(int)':
Main.cpp:15:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | #define REP(i, n) for(int i = 0; i < n; ++i)
......
52 | REP(i, v[node].size()){
| ~~~~~~~~~~~~~~~~~
Main.cpp:52:2: note: in expansion of macro 'REP'
52 | REP(i, v[node].size()){
| ^~~