fireworks.cpp: In function 'void DFS1(int)':
fireworks.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
fireworks.cpp:19:9: note: in expansion of macro 'rep'
19 | rep(i, V[x].size()) if(cnt[V[x][i].st]>cnt[V[x][0].st]) swap(V[x][0], V[x][i]);
| ^~~
fireworks.cpp: In function 'void DFS2(int, ll, std::priority_queue<long long int>&)':
fireworks.cpp:30:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int i=1; i<V[x].size(); ++i) {
| ~^~~~~~~~~~~~
fireworks.cpp:5:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
fireworks.cpp:38:9: note: in expansion of macro 'rep'
38 | rep(i, V[x].size()-1) q.pop();
| ^~~